Package qm :: Module web :: Class HttpRedirect
[hide private]
[frames] | no frames]

Class HttpRedirect

source code

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              HttpRedirect

Exception signalling an HTTP redirect response.

A script registered with a 'WebServer' instance can raise this exception instead of returning HTML source text, to indicate that the server should send an HTTP redirect (code 302) response to the client instead of the usual code 202 response.

The exception argument is the URL of the redirect target. The 'request' attribute contains a 'WebRequest' for the redirect target.

Instance Methods [hide private]
 
__init__(self, redirect_target_request)
Construct a redirection exception.
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, redirect_target_request)
(Constructor)

source code 

Construct a redirection exception.

'redirect_target_request' -- The 'WebRequest' to which to redirect the client.

Overrides: object.__init__