[Twisted-Python] Forms-handling in Twisted
Abe Fettig
abe at fettig.net
Tue Aug 26 11:21:50 MDT 2003
On Tue, 2003-08-26 at 12:58, Thomas Weholt wrote:
> Can anybody provide a simple example on how to use the form-widget in
> Twisted?
I've been working on understanding this myself. Attached is an
incomplete example, but it does illustrate how to set up a form and use
it within a woven template.
Notable points:
* the same template is used both for the form and the error page
* view is left blank in the template; woven sees that the model is a
FormMethod object and automatically selects the correct View.
Abe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twisted-form-demo.py
Type: text/x-python
Size: 1300 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030826/1949efa4/attachment-0002.py>
More information about the Twisted-Python
mailing list