コード例 #1
0
ファイル: test_app.py プロジェクト: abhinavthomas/allura
def install_app():
    project = create_project('myproject')
    app_config = create_app_config(project, 'my_mounted_app')
    # XXX: Remove project argument to install; it's redundant
    app = Application(project, app_config)
    app.install(project)
    return app
コード例 #2
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ProjectAdminController()
     self.api_root = ProjectAdminRestController()
     self.admin = AdminAppAdminController(self)
     self.templates = pkg_resources.resource_filename('allura.ext.admin', 'templates')
     self.sitemap = [ SitemapEntry('Admin','.')]
コード例 #3
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.api_root = RootRestController()
     self.admin = ForumAdminController(self)
     self.default_forum_preferences = dict(
         subscriptions={})
コード例 #4
0
ファイル: main.py プロジェクト: jekatgithub/incubator-allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     role_admin = M.ProjectRole.by_name('Admin', project)._id
     role_anon = M.ProjectRole.by_name('*anonymous', project)._id
     self.config.acl = [
         M.ACE.allow(role_anon, 'read'),
         M.ACE.allow(role_admin, 'admin')]
コード例 #5
0
 def __init__(self, user, config):
     Application.__init__(self, user, config)
     self.root = UserProfileController()
     self.templates = pkg_resources.resource_filename(
         'allura.ext.user_profile', 'templates')
コード例 #6
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.admin = RepoAdminController(self)
コード例 #7
0
ファイル: main.py プロジェクト: johnsca/incubator-allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     role_admin = M.ProjectRole.by_name("Admin", project)._id
     role_anon = M.ProjectRole.by_name("*anonymous", project)._id
     self.config.acl = [M.ACE.allow(role_anon, "read"), M.ACE.allow(role_admin, "admin")]
コード例 #8
0
ファイル: main.py プロジェクト: johnsca/incubator-allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.channel = CM.ChatChannel.query.get(app_config_id=config._id)
     self.root = RootController()
     self.admin = AdminController(self)
コード例 #9
0
ファイル: main.py プロジェクト: apache/incubator-allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
コード例 #10
0
ファイル: forum_main.py プロジェクト: lym/allura-git
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.api_root = RootRestController()
     self.admin = ForumAdminController(self)
     self.default_forum_preferences = dict(subscriptions={})
コード例 #11
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ProjectHomeController()
     self.api_root = RootRestController()
     self.templates = pkg_resources.resource_filename(
         'allura.ext.project_home', 'templates')
コード例 #12
0
ファイル: search_main.py プロジェクト: xmonader/allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = SearchController()
     self.templates = pkg_resources.resource_filename(
         'allura.ext.search', 'templates')
コード例 #13
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = SearchController()
     self.templates = pkg_resources.resource_filename('allura.ext.search', 'templates')
コード例 #14
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ProjectHomeController()
     self.templates = pkg_resources.resource_filename(
         'allura.ext.project_home', 'templates')
コード例 #15
0
ファイル: dl_main.py プロジェクト: Bitergia/allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
コード例 #16
0
ファイル: main.py プロジェクト: Bitergia/allura
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = BlogAdminController(self)
コード例 #17
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
コード例 #18
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = LinkAdminController(self)
     self.api_root = RootRestController(self)
コード例 #19
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ProjectAdminController()
     self.admin = AdminAppAdminController(self)
     self.templates = pkg_resources.resource_filename("allura.ext.admin", "templates")
     self.sitemap = [SitemapEntry("Admin", ".")]