1a107601fa490ca69215facceebe3d0dc5e7f1f86bcef0037bdb2d139a15065c3f31e872bae79df3
49
                  'uncompressedJS',
49
                  'uncompressedJS',
50
                  'enable_doquery',
50
                  'enable_doquery',
51
                  'use_query_cache',
51
                  'use_query_cache',
52
                  'write_query_queue']
52
                  'write_query_queue',
 
 
53
                  'css_killswitch']
53
 
54
 
54
    tuple_props = ['memcaches',
55
    tuple_props = ['memcaches',
55
                   'rec_cache',
56
                   'rec_cache',
...
 
...
 
57
                   'monitored_servers',
58
                   'monitored_servers',
58
                   'default_srs',
59
                   'default_srs',
59
                   'agents',
60
                   'agents',
 
 
61
                   'allowed_css_linked_domains',
60
                   'query_caches']
62
                   'query_caches']
61
 
63
 
62
    def __init__(self, global_conf, app_conf, paths, **extra):
64
    def __init__(self, global_conf, app_conf, paths, **extra):
...
 
...
 
157
        self.log.addHandler(logging.StreamHandler())
159
        self.log.addHandler(logging.StreamHandler())
158
        if self.debug:
160
        if self.debug:
159
            self.log.setLevel(logging.DEBUG)
161
            self.log.setLevel(logging.DEBUG)
160
            
162
 
 
 
163
        #read in our CSS so that it can become a default for subreddit
 
 
164
        #stylesheets
 
 
165
        stylesheet_path = os.path.join(paths.get('static_files'),
 
 
166
                                       self.static_path.lstrip('/'),
 
 
167
                                       self.stylesheet)
 
 
168
        with open(stylesheet_path) as s:
 
 
169
            self.default_stylesheet = s.read()
 
 
170
 
161
    def __del__(self):
171
    def __del__(self):
162
        """
172
        """
163
        Put any cleanup code to be run when the application finally exits 
173
        Put any cleanup code to be run when the application finally exits