Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1652

Show
Ignore:
Timestamp:
05/02/07 00:19:17
Author:
fumanchu
Message:

Doc updates.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cpmodpy.py

    r1627 r1652  
    2222                            'log.screen': False, 
    2323                            'show_tracebacks': False}) 
     24     
     25    # Turn off the builtin signal handlers, which can interact 
     26    # in strange ways with the Apache process. 
     27    cherrypy.engine.SIGHUP = None 
     28    cherrypy.engine.SIGTERM = None 
     29     
    2430    # You must start the engine in a non-blocking fashion 
    2531    # so that mod_python can proceed 
     
    4753# End 
    4854 
    49 The actual path to your mod_python.so is dependant of your 
     55The actual path to your mod_python.so is dependent on your 
    5056environment. In this case we suppose a global mod_python 
    5157installation on a Linux distribution such as Ubuntu. 
  • trunk/cherrypy/lib/sessions.py

    r1639 r1652  
    448448    cherrypy._serving.session = sess = globals()[storage_class](id, **kwargs) 
    449449     
     450    # Create cherrypy.session which will proxy to cherrypy._serving.session 
    450451    if not hasattr(cherrypy, "session"): 
    451452        cherrypy.session = cherrypy._ThreadLocalProxy('session') 
  • trunk/cherrypy/restsrv/plugins.py

    r1651 r1652  
    378378    'start_thread' and 'stop_thread' listeners in the engine as needed. 
    379379     
    380     If threads are created and destroyed by code you do not control (e.g., 
    381     Apache), then, at the beginning of every HTTP request, publish to 
    382     'acquire_thread' only. You should not publish to 'release_thread' in 
    383     this case, since you do not know whether the thread will be re-used or 
    384     not. The engine will call 'stop_thread' listeners for you when it stops. 
     380    If threads are created and destroyed by code you do not control 
     381    (e.g., Apache), then, at the beginning of every HTTP request, 
     382    publish to 'acquire_thread' only. You should not publish to 
     383    'release_thread' in this case, since you do not know whether 
     384    the thread will be re-used or not. The engine will call 
     385    'stop_thread' listeners for you when it stops. 
    385386    """ 
    386387     
     
    394395     
    395396    def acquire(self): 
    396         """Run 'start_thread' listeners for the current thread. Idempotent.""" 
     397        """Run 'start_thread' listeners for the current thread. 
     398         
     399        If the current thread has already been seen, any 'start_thread' 
     400        listeners will not be run again. 
     401        """ 
    397402        thread_ident = threading._get_ident() 
    398403        if thread_ident not in self.threads: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets