Warning
This documentation does not refer to the most recent version of Pylons. Current Documentation
The decorators module is accessible via the pylons module.
Validate input either for a FormEncode schema, or individual validators
Given a form schema or dict of validators, validate will attempt to validate the schema or validator list.
Example:
class SomeController(BaseController):
def create(self, id):
return render_response('/myform.myt')
@validate(schema=model.forms.myshema(), form='create')
def update(self, id):
# Do something with self.form_results
pass
The pylons.decorators module exposes 1 submodules:
See the source for more information.