Package posterity :: Module web :: Class Request

Class Request



                    object --+    
                             |    
paste.wsgiwrappers.WSGIRequest --+
                                 |
                                Request

A paste.WSGIRequest subclass with some extra features

Additional features: * Genshi template rendering * req.params include wsgiorg.routing_args values



Instance Methods
 
__init__(self, environ, start_response)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
flash(self, msg, type='info')
Send a flash message.
 
redirect(self, location)
 
send_template(self, filename, data={})
Renders a genshi template

Inherited from paste.wsgiwrappers.WSGIRequest: __repr__, body, determine_browser_charset, match_accept, method, path_info, scheme, script_name

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables

Inherited from paste.wsgiwrappers.WSGIRequest: defaults

Properties
  formvars

Inherited from paste.wsgiwrappers.WSGIRequest: GET, POST, cookies, host, is_xhr, languages, params, urlvars

Inherited from object: __class__

Method Details

__init__(self, environ, start_response)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: paste.wsgiwrappers.WSGIRequest.__init__

flash(self, msg, type='info')

 

Send a flash message.

Flash messages are messages that are displayed on the next page viewed by the user. These messages are useful when the controller needs to redirect a user to a different page and likes to insert a message on that page.

send_template(self, filename, data={})

 

Renders a genshi template

Forms will automatically be populated with form values and validation error messages if available.


Property Details

formvars

Get Method:
unreachable.formvars(self) - FormEncode validated form values