Switch to unified view

a/Allura/allura/app.py b/Allura/allura/app.py
...
...
96
    __version__ = None
96
    __version__ = None
97
    config_options = [
97
    config_options = [
98
        ConfigOption('mount_point', str, 'app'),
98
        ConfigOption('mount_point', str, 'app'),
99
        ConfigOption('mount_label', str, 'app'),
99
        ConfigOption('mount_label', str, 'app'),
100
        ConfigOption('ordinal', int, '0') ]
100
        ConfigOption('ordinal', int, '0') ]
101
    status_map = [ 'production', 'beta', 'alpha' ]
102
    status='production'
101
    templates=None # path to templates
103
    templates=None # path to templates
102
    script_name=None
104
    script_name=None
103
    root=None  # root controller
105
    root=None  # root controller
104
    api_root=None
106
    api_root=None
105
    permissions=[]
107
    permissions=[]
...
...
119
    def __init__(self, project, app_config_object):
121
    def __init__(self, project, app_config_object):
120
        self.project = project
122
        self.project = project
121
        self.config = app_config_object # pragma: no cover
123
        self.config = app_config_object # pragma: no cover
122
        self.admin = DefaultAdminController(self)
124
        self.admin = DefaultAdminController(self)
123
        self.url = self.config.url()
125
        self.url = self.config.url()
126
127
    @classmethod
128
    def status_int(self):
129
        return self.status_map.index(self.status)
124
130
125
    def has_access(self, user, topic):
131
    def has_access(self, user, topic):
126
        '''Whether the user has access to send email to the given topic'''
132
        '''Whether the user has access to send email to the given topic'''
127
        return False
133
        return False
128
134