comparison libervia/server/server.py @ 1151:49ff1330c9d0

server: added "dev_mode" boolean option (not used yet but will be soon)
author Goffi <goffi@goffi.org>
date Fri, 22 Feb 2019 16:56:58 +0100
parents 02afab1b15c5
children 1c23252958ed
comparison
equal deleted inserted replaced
1150:0effdb357a87 1151:49ff1330c9d0
1833 if default_dict: 1833 if default_dict:
1834 conf[u''] = default_dict 1834 conf[u''] = default_dict
1835 1835
1836 @defer.inlineCallbacks 1836 @defer.inlineCallbacks
1837 def backendReady(self, __): 1837 def backendReady(self, __):
1838 if self.options[u'dev_mode']:
1839 log.info(_(u"Developer mode activated"))
1838 self.media_dir = self.bridge.getConfig("", "media_dir") 1840 self.media_dir = self.bridge.getConfig("", "media_dir")
1839 self.local_dir = self.bridge.getConfig("", "local_dir") 1841 self.local_dir = self.bridge.getConfig("", "local_dir")
1840 self.cache_root_dir = os.path.join(self.local_dir, C.CACHE_DIR) 1842 self.cache_root_dir = os.path.join(self.local_dir, C.CACHE_DIR)
1841 self.renderer = template.Renderer(self, self._front_url_filter) 1843 self.renderer = template.Renderer(self, self._front_url_filter)
1842 sites_names = self.renderer.sites_paths.keys() 1844 sites_names = self.renderer.sites_paths.keys()