[Mpuls-commits] r5335 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Sep 14 19:55:27 CEST 2011
Author: bh
Date: 2011-09-14 19:55:27 +0200 (Wed, 14 Sep 2011)
New Revision: 5335
Modified:
base/trunk/mpulsweb/lib/validators.py
Log:
Port validator for meta-case searches from WASKU to mpulsweb.
The validator was copied from WASKU web 415:9215fe60dbe6. It was copied
without changes except for a formatting fix.
Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py 2011-09-14 17:51:57 UTC (rev 5334)
+++ base/trunk/mpulsweb/lib/validators.py 2011-09-14 17:55:27 UTC (rev 5335)
@@ -738,4 +738,17 @@
class NewCaseForm(BaseFormValidator):
statement_signed = Bool(if_missing=False)
+
+class MetaSearchForm(BaseFormValidator):
+
+ """Check birthname, firstname, gender, birthdate parameters.
+ All must be set.
+ """
+
+ birthname = String(not_empty=True)
+ firstname = String(not_empty=True)
+ gender = KeineAngabe()
+ birthdate = MyDateConverter(not_empty=True, month_style="dd.mm.jjjj")
+
+
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8
More information about the Mpuls-commits
mailing list