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
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','.')]
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) 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')
def __init__(self, project, config): Application.__init__(self, project, config) self.admin = RepoAdminController(self)
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, 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)
def __init__(self, project, config): Application.__init__(self, project, config) self.root = ForgeActivityController(self) self.api_root = ForgeActivityRestController(self)
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')
def __init__(self, project, config): Application.__init__(self, project, config) self.root = SearchController() self.templates = pkg_resources.resource_filename( 'allura.ext.search', 'templates')
def __init__(self, project, config): Application.__init__(self, project, config) self.root = SearchController() self.templates = pkg_resources.resource_filename('allura.ext.search', 'templates')
def __init__(self, project, config): Application.__init__(self, project, config) self.root = ProjectHomeController() self.templates = pkg_resources.resource_filename( 'allura.ext.project_home', 'templates')
def __init__(self, project, config): Application.__init__(self, project, config) self.root = RootController()
def __init__(self, project, config): Application.__init__(self, project, config) self.root = RootController() self.admin = BlogAdminController(self)
def __init__(self, project, config): Application.__init__(self, project, config) self.root = RootController() self.admin = LinkAdminController(self) self.api_root = RootRestController(self)
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", ".")]