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

Changeset 950

Show
Ignore:
Timestamp:
01/30/06 22:16:41
Author:
dowski
Message:

Added new cherrypy.request.wsgi_environ attribute that contains a dictionary of the WSGI environment (surprise, surprise). In a non-WSGI setting wsgi_environ has a value of False.

Files:

Legend:

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

    r887 r950  
    8181            request.multithread = cherrypy.config.get("server.thread_pool") > 1 
    8282            request.multiprocess = False 
     83            request.wsgi_environ = False 
    8384            response = request.run(self.raw_requestline, self._headerlist(), 
    8485                                   self.rfile) 
  • trunk/cherrypy/_cpwsgi.py

    r887 r950  
    7070        request.multithread = environ['wsgi.multithread'] 
    7171        request.multiprocess = environ['wsgi.multiprocess'] 
     72        request.wsgi_environ = environ 
    7273        response = request.run(requestLine(environ), 
    7374                               translate_headers(environ), 

Hosted by WebFaction

Log in as guest/cpguest to create tickets