Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 6
0
 def __init__(self, *args, **kw):
     Publisher.__init__(self, *args, **kw)
     self._request_dict = {}
Exemplo n.º 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/')
Exemplo n.º 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/')
Exemplo n.º 9
0
Arquivo: app.py Projeto: leonsim/me
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
Exemplo n.º 10
0
 def __init__(self, *args, **kw):
     Publisher.__init__(self, *args, **kw)
     self._request_dict = {}
Exemplo n.º 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 = {}