예제 #1
0
    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()
예제 #2
0
    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()
예제 #3
0
파일: Server.py 프로젝트: cherokee/pyscgi
    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()