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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 20 13:49:37 CEST 2011


Author: torsten
Date: 2011-09-20 13:49:37 +0200 (Tue, 20 Sep 2011)
New Revision: 5375

Modified:
   base/trunk/mpulsweb/lib/validators.py
Log:
Check firstname of father and mother in validator. Name must be present and
have a min length of 2.


Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2011-09-20 09:36:38 UTC (rev 5374)
+++ base/trunk/mpulsweb/lib/validators.py	2011-09-20 11:49:37 UTC (rev 5375)
@@ -749,6 +749,8 @@
     firstname = String(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)
 
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8



More information about the Mpuls-commits mailing list