[Mpuls-commits] r5463 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 13 10:09:06 CEST 2011


Author: ludwig
Date: 2011-10-13 10:09:04 +0200 (Thu, 13 Oct 2011)
New Revision: 5463

Modified:
   base/trunk/mpulsweb/lib/validators.py
Log:
Issue 482: Add a DateOrder validator to the EvaluationFormValidator.
Now it is checked, if start_date and end_date are in the right order.


Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2011-10-12 18:02:30 UTC (rev 5462)
+++ base/trunk/mpulsweb/lib/validators.py	2011-10-13 08:09:04 UTC (rev 5463)
@@ -676,6 +676,7 @@
                                                 for item in s.split()],
                            from_python=lambda ids: " ".join(map(unicode, ids)),
                            if_missing=None)
+    chained_validators = [DateOrder('start_date', 'end_date')]
 
 
 class SearchCaseForm(BaseFormValidator):



More information about the Mpuls-commits mailing list