Did I find the right examples for you? yes no

All Samples(19)  |  Call(0)  |  Derive(0)  |  Import(19)

src/m/2/M2Crypto-HEAD/examples/Zope/z2s.py   M2Crypto(Download)
# application code so that ZServer's asyncore gets to be the
# official one. Also gets SOFTWARE_HOME, INSTANCE_HOME, and CLIENT_HOME
import ZServer
 
# install signal handlers if on posix

src/z/o/Zope2-2.13.22/src/Zope2/Startup/handlers.py   Zope2(Download)
def large_file_threshold(value):
    import ZServer
    ZServer.LARGE_FILE_THRESHOLD = value
 
def publisher_profile_file(value):
def max_listen_sockets(value):
    import ZServer
    ZServer.CONNECTION_LIMIT = value
 
def cgi_maxlen(value):

src/z/o/Zope-HEAD/src/Zope2/Startup/handlers.py   Zope(Download)
def large_file_threshold(value):
    import ZServer
    ZServer.LARGE_FILE_THRESHOLD = value
 
def publisher_profile_file(value):
def max_listen_sockets(value):
    import ZServer
    ZServer.CONNECTION_LIMIT = value
 
def cgi_maxlen(value):

src/z/o/Zope2-2.13.22/src/Zope2/Startup/__init__.py   Zope2(Download)
            from App.config import getConfiguration
            config = getConfiguration()
            import ZServer
            import Lifetime
            Lifetime.loop()
    def setupZServer(self):
        # Increase the number of threads
        import ZServer
        ZServer.setNumberOfThreads(self.cfg.zserver_threads)
        ZServer.CONNECTION_LIMIT = self.cfg.max_listen_sockets

src/z/o/Zope-HEAD/src/Zope2/Startup/__init__.py   Zope(Download)
            from App.config import getConfiguration
            config = getConfiguration()
            import ZServer
            import Lifetime
            Lifetime.loop()
    def setupZServer(self):
        # Increase the number of threads
        import ZServer
        ZServer.setNumberOfThreads(self.cfg.zserver_threads)
        ZServer.CONNECTION_LIMIT = self.cfg.max_listen_sockets

src/z/o/Zope2-2.13.22/src/ZServer/PCGIServer.py   Zope2(Download)
from asyncore import compact_traceback
 
import ZServer
from ZServer import requestCloseOnExec
 

src/z/o/Zope2-2.13.22/src/ZPublisher/HTTPResponse.py   Zope2(Download)
    def _requestShutdown(self, exitCode=0):
        """ Request that the server shut down with exitCode after fulfilling
           the current request.
        """
        import ZServer

src/z/o/Zope2-2.13.22/src/Lifetime/__init__.py   Zope2(Download)
    if _shutdown_phase == 0:
        # Thread safety? proably no need to care
        import ZServer
        ZServer.exit_code = exit_code
        _shutdown_phase = 1

src/z/o/Zope-HEAD/src/ZServer/PCGIServer.py   Zope(Download)
from asyncore import compact_traceback
 
import ZServer
from ZServer import requestCloseOnExec
 

src/z/o/Zope-HEAD/src/ZPublisher/HTTPResponse.py   Zope(Download)
    def _requestShutdown(self, exitCode=0):
        """ Request that the server shut down with exitCode after fulfilling
           the current request.
        """
        import ZServer

  1 | 2  Next