Home | Trees | Indices | Help |
|
---|
|
object --+ | FormRewriteFilter
Rewrite PUT/DELETE forms into POST forms.
Most browsers only support form actions 'GET' and 'POST'. This filter works around this problem by setting the action attribute to 'POST' and inserting an extra hidden variable storing the actual http method. This filter should be used together with the FormRewriteMiddleware.
>>> from genshi.input import HTML >>> stream = HTML('<form method="put"/>') >>> stream = stream | FormRewriteFilter() >>> stream.render() '<form method="post"><input type="hidden" name="_method" value="put"/></form>'
Instance Methods | |||
|
|||
Inherited from |
Properties | |
Inherited from |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Oct 1 20:58:01 2007 | http://epydoc.sourceforge.net |