| Home | Trees | Indices | Help |
|
|---|
|
|
A WSGI application for CherryPy Application responses.
recursive: if False (the default), each URL (path + qs) will be stored, and, if the same URL is requested again via an InternalRedirect, RuntimeError will be raised. If 'recursive' is True, no such error will be raised.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
throws = KeyboardInterrupt, SystemExit
|
|||
request = None
|
|||
headerNames =
|
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Doctor self.environ and perform an internal redirect. When cherrypy.InternalRedirect is raised, this method is called. It rewrites the WSGI environ using the new path and query_string, and calls a new CherryPy Request object. Because the wsgi.input stream may have already been consumed by the next application, the redirected call will always be of HTTP method "GET"; therefore, any params must be passed in the query_string argument, which is formed from InternalRedirect.query_string when using that exception. If you need something more complicated, make and raise your own exception and write your own AppResponse subclass to trap it. ;) It would be a bad idea to redirect after you've already yielded response content, although an enterprising soul could choose to abuse this. |
|
|||
headerNames
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 21 07:40:19 2008 | http://epydoc.sourceforge.net |