| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
DIV --+
|
FORM
example:
>>> form=FORM(INPUT(_name="test",requires=IS_NOT_EMPTY()))
>>> form.xml()
'<form enctype="multipart/form-data" method="post"><input name="test"/></form>'
a FORM is container for INPUT, TEXTAREA, SELECT and other helpers
form has one important method:
form.accepts(request.vars, session)
if form is accepted (and all validators pass) form.vars containes the
accepted vars, otherwise form.errors contains the errors.
in case of errors the form is modified to present the errors to the user.
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
tag =
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Tue Mar 25 20:33:07 2008 | http://epydoc.sourceforge.net |