Exemplo n.º 1
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')]
Exemplo n.º 2
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={})
Exemplo n.º 3
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','.')]
Exemplo n.º 4
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', '.')]
Exemplo n.º 5
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')]
Exemplo n.º 6
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = ShortURLAdminController(self)
Exemplo n.º 7
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.admin = RepoAdminController(self)
Exemplo n.º 8
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")]
Exemplo n.º 9
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)
Exemplo n.º 10
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = BlogAdminController(self)
Exemplo n.º 11
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')
     self.api_root = UserProfileRestController()
Exemplo n.º 12
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
Exemplo n.º 13
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')
Exemplo n.º 14
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = SearchController()
     self.templates = pkg_resources.resource_filename(
         'allura.ext.search', 'templates')
Exemplo n.º 15
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = SearchController()
     self.templates = pkg_resources.resource_filename('allura.ext.search', 'templates')
Exemplo n.º 16
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')
Exemplo n.º 17
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')
Exemplo n.º 18
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
Exemplo n.º 19
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.admin = RepoAdminController(self)
     self.admin_api_root = RepoAdminRestController(self)
Exemplo n.º 20
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = ForgeActivityController(self)
     self.api_root = ForgeActivityRestController(self)
Exemplo n.º 21
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)
Exemplo n.º 22
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
Exemplo n.º 23
0
 def __init__(self, project, config):
     Application.__init__(self, project, config)
     self.root = RootController()
     self.admin = LinkAdminController(self)
     self.api_root = RootRestController(self)
Exemplo n.º 24
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", ".")]