コード例 #1
0
ファイル: publish1.py プロジェクト: pganti/micheles
 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)
コード例 #2
0
ファイル: publish1.py プロジェクト: luchuan/quixote
 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)
コード例 #3
0
ファイル: publish.py プロジェクト: likwoka/old_py_stuffs
 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
コード例 #4
0
ファイル: mod_python_handler.py プロジェクト: pganti/micheles
 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
コード例 #5
0
ファイル: mod_python_handler.py プロジェクト: luchuan/quixote
 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
コード例 #6
0
ファイル: wsgi_server.py プロジェクト: pepe5/scotch
 def __init__(self, *args, **kw):
     Publisher.__init__(self, *args, **kw)
     self._request_dict = {}
コード例 #7
0
ファイル: web.py プロジェクト: zhangyionesound/code
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
     self.configure(DISPLAY_EXCEPTIONS='plain',
                    SECURE_ERRORS=0,
                    UPLOAD_DIR=get_tmpdir() + '/upload/')
コード例 #8
0
ファイル: web.py プロジェクト: 377262688/code
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
     self.configure(DISPLAY_EXCEPTIONS='plain',
                    SECURE_ERRORS=0,
                    UPLOAD_DIR=get_tmpdir() + '/upload/')
コード例 #9
0
ファイル: app.py プロジェクト: leonsim/me
 def __init__(self, *args, **kwargs):
     Publisher.__init__(self, *args, **kwargs)
コード例 #10
0
 def __init__(self, *args, **kw):
     Publisher.__init__(self, *args, **kw)
     self._request_dict = {}
コード例 #11
0
ファイル: SCGI.py プロジェクト: AZRMAK/AZRMAK
 def __init__ (self,root_namespace,logger=None,session_manager=None,config=None): 
     Publisher.__init__(self, root_namespace,logger,session_manager, config) 
     self._request_dict = {}