Commits

Remi Delon  committed fb1c513

Added cpg.threadData - ticket #53

  • Participants
  • Parent commits 2bac386

Comments (0)

Files changed (2)

File ChangeLog.txt

+    * Added cpg.threadData - ticket #53 (Remi)
     * Added request.requestLine - ticket #52 (Remi)
     * logFile config option is now honored - ticket #51 (Remi)
     * Added cpg.request.remoteAddr and cpg.request.remoteHost - ticket #34 (Eurleif) 

File cherrypy/_cpserver.py

     #   throughout the entire life of the webserver)
     cpg.request = _cputil.ThreadAwareClass()
     cpg.response = _cputil.ThreadAwareClass()
+    # Create threadData object as a thread-specific all-purpose storage
+    cpg.threadData = _cputil.ThreadAwareClass()
 
     # Initialize a few global variables
     cpg._lastCacheFlushTime = time.time()