예제 #1
0
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
 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
 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
 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
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
예제 #10
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={})
예제 #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
 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", ".")]