def init_server (self, *args, **kwargs): # Is it already init? if self._is_init: return self._is_init = True # Instance SCGI server self._scgi = pyscgi.ServerFactory (*args, **kwargs) # Figure plug-in paths from Plugin import figure_plugin_paths self.plugin_paths = figure_plugin_paths()
def init_server(self, *args, **kwargs): # Is it already init? if self._is_init: return self._is_init = True # Security cookie/submit if 'sec_cookie' in kwargs: self.use_sec_cookie = kwargs.pop('sec_cookie') if 'sec_submit' in kwargs: self.use_sec_submit = kwargs.pop('sec_submit') # Instance SCGI server self._scgi = pyscgi.ServerFactory(*args, **kwargs) # Figure plug-in paths from Plugin import figure_plugin_paths self.plugin_paths = figure_plugin_paths()
def init_server (self, *args, **kwargs): # Is it already init? if self._is_init: return self._is_init = True # Security cookie/submit if 'sec_cookie' in kwargs: self.use_sec_cookie = kwargs.pop('sec_cookie') if 'sec_submit' in kwargs: self.use_sec_submit = kwargs.pop('sec_submit') # Instance SCGI server self._scgi = pyscgi.ServerFactory (*args, **kwargs) # Figure plug-in paths from Plugin import figure_plugin_paths self.plugin_paths = figure_plugin_paths()