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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 27 10:10:41 CEST 2011


Author: torsten
Date: 2011-09-27 10:10:40 +0200 (Tue, 27 Sep 2011)
New Revision: 5394

Modified:
   base/trunk/mpulsweb/lib/validators.py
Log:
Strip Values in Meta Search befre checking.


Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2011-09-26 10:35:06 UTC (rev 5393)
+++ base/trunk/mpulsweb/lib/validators.py	2011-09-27 08:10:40 UTC (rev 5394)
@@ -745,12 +745,12 @@
     All must be set.
     """
 
-    birthname = String(not_empty=True)
-    firstname = String(not_empty=True)
+    birthname = String(strip=True, not_empty=True)
+    firstname = String(strip=True, not_empty=True)
     gender = KeineAngabe()
     birthdate = MyDateConverter(not_empty=True, month_style="dd.mm.jjjj")
-    firstname_mother = String(not_empty=True, min=2)
-    firstname_father = String(not_empty=True, min=2)
+    firstname_mother = String(strip=True, not_empty=True, min=2)
+    firstname_father = String(strip=True, not_empty=True, min=2)
 
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8



More information about the Mpuls-commits mailing list