.. _pyck-forms: The pyck.forms Package ====================== .. automodule:: pyck.forms :members: Here is an example usage to demonstrate the improvements:: from pyck.forms import Form from wtforms import TextField, validators class MyForm(Form): name = TextField("Name", [validators.required()]) fname = TextField("Father's Name", [validators.required()]) myform = MyForm() str(myform.as_p()) r'\n

\n

\n\n

\n

\n' myform.validate() False str(myform.as_p(labels='left', errors='right')) '\n

\n This field is required.

\n\n

\n This field is required.

\n' Within a template, all you need to do is to just call the form's rendering function, for example:: ${myform.as_p() | n}