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

Changeset 1042

Show
Ignore:
Timestamp:
04/06/06 15:04:03
Author:
fumanchu
Message:

Fix for #505 (cherrypy.thread_data cleared on Request.close).

Files:

Legend:

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

    r1020 r1042  
    4040            applyFilters('on_end_request', failsafe=True) 
    4141            cherrypy.serving.__dict__.clear() 
    42             cherrypy.thread_data.__dict__.clear() 
    4342     
    4443    def run(self, requestLine, headers, rfile): 
  • trunk/cherrypy/test/test_http.py

    r1019 r1042  
    2525    class Root: 
    2626        def index(self, *args, **kwargs): 
    27             cherrypy.thread_data.thing = data 
     27            cherrypy.request.thing = data 
    2828            return "Hello world!" 
    2929        index.exposed = True 

Hosted by WebFaction

Log in as guest/cpguest to create tickets