I'm using formencode for validating and submitting forms in my Pylons application. The documentation says that it can be used also for generating forms, but there is no any example. I even found the old topic which says it can be done with
form = HTMLForm(form_template, FormSchema)
form.render()
but for the latest version of formencode it doesn't work.
So, someone please help, how can I generate a HTML using the simplest form Schema?
class LoginForm(formencode.Schema):
allow_extra_fields = True
filter_extra_fields = True
email = formencode.validators.String(not_empty=True)
password = formencode.validators.String(not_empty=True)