From e50ce9ec3620eb85407066fb9398e9c52fb60022 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Fri, 3 Jul 2015 10:10:44 +0200 Subject: [PATCH] Clarify validation docstring. --- src/formdefinition.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/formdefinition.py b/src/formdefinition.py index f52bdb5..64b06d4 100644 --- a/src/formdefinition.py +++ b/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()