Esempio n. 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
Esempio n. 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','.')]
Esempio n. 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={})
Esempio n. 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')]
 def __init__(self, user, config):
     Application.__init__(self, user, config)
     self.root = UserProfileController()
     self.templates = pkg_resources.resource_filename(
         'allura.ext.user_profile', 'templates')
Esempio n. 6
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.admin = RepoAdminController(self)
Esempio n. 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")]
Esempio n. 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)
Esempio n. 9
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
Esempio n. 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={})
 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 15
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
Esempio n. 16
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = BlogAdminController(self)
Esempio n. 17
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
Esempio n. 18
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = LinkAdminController(self)
     self.api_root = RootRestController(self)
Esempio n. 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", ".")]