Clarify validation docstring.

pull/7/head
Ferry Boender 10 years ago
parent 292058dcd6
commit e50ce9ec36
  1. 5
      src/formdefinition.py

@ -55,8 +55,9 @@ class FormDefinition(object):
def validate(self, form_values):
"""
Validate all relevant fields for this form against form_values. Returns
a set with the errors and new values.
Validate all relevant fields for this form against form_values. This
happens when the form is submitted. Returns a set with the errors and
new values.
"""
errors = {}
values = form_values.copy()

Loading…
Cancel
Save