Beispiel #1
0
 def __init__(self, root_namespace, config=None):
     from quixote.config import Config
     if type(root_namespace) is types.StringType:
         root_namespace = _get_module(root_namespace)
     self.namespace_stack = [root_namespace]
     if config is None:
         config = Config()
     directory = RootDirectory(root_namespace, self.namespace_stack)
     _Publisher.__init__(self, directory, config=config)
Beispiel #2
0
 def __init__(self, root_namespace, config=None):
     from quixote.config import Config
     if type(root_namespace) is types.StringType:
         root_namespace = _get_module(root_namespace)
     self.namespace_stack = [root_namespace]
     if config is None:
         config = Config()
     directory = RootDirectory(root_namespace, self.namespace_stack)
     _Publisher.__init__(self, directory, config=config)
Beispiel #3
0
 def __init__(self,
              root_directory,
              logger=None,
              session_manager=None,
              config=None,
              **kwargs):
     Publisher.__init__(self, root_directory, logger, session_manager,
                        config, **kwargs)
     self._request_dict = {}
     del self._request
Beispiel #4
0
 def __init__(self, package, **kwargs):
     Publisher.__init__(self, package, **kwargs)
     # may be overwritten
     self.logger.error_log = self.__error_log = ErrorLog(self)
     self.__apache_request = None
Beispiel #5
0
 def __init__(self, package, **kwargs):
     Publisher.__init__(self, package, **kwargs)
     # may be overwritten
     self.logger.error_log = self.__error_log = ErrorLog(self)
     self.__apache_request = None
Beispiel #6
0
 def __init__(self, *args, **kw):
     Publisher.__init__(self, *args, **kw)
     self._request_dict = {}
Beispiel #7
0
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
     self.configure(DISPLAY_EXCEPTIONS='plain',
                    SECURE_ERRORS=0,
                    UPLOAD_DIR=get_tmpdir() + '/upload/')
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
     self.configure(DISPLAY_EXCEPTIONS='plain',
                    SECURE_ERRORS=0,
                    UPLOAD_DIR=get_tmpdir() + '/upload/')
Beispiel #9
0
Datei: app.py Projekt: leonsim/me
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kw):
     Publisher.__init__(self, *args, **kw)
     self._request_dict = {}
Beispiel #11
0
 def __init__ (self,root_namespace,logger=None,session_manager=None,config=None): 
     Publisher.__init__(self, root_namespace,logger,session_manager, config) 
     self._request_dict = {}