[Mpuls-commits] r1603 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 16 11:21:04 CET 2010


Author: torsten
Date: 2010-02-16 11:21:04 +0100 (Tue, 16 Feb 2010)
New Revision: 1603

Modified:
   wasko/branches/2.0/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py (CreateLogbookForm), (EditLogbookForm):
Copied from waskaweb.lib.validators


Modified: wasko/branches/2.0/mpulsweb/lib/validators.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/validators.py	2010-02-16 10:19:15 UTC (rev 1602)
+++ wasko/branches/2.0/mpulsweb/lib/validators.py	2010-02-16 10:21:04 UTC (rev 1603)
@@ -340,5 +340,13 @@
     standin = formencode.ForEach(formencode.validators.Int(),
                                  convert_to_list=True)
 
+class CreateLogbookForm(BaseFormValidator):
+    date = DateCheck(not_empty=True)
+    time = TimeCheck(not_empty=True)
+    duration = Int()
+    short_notice = StringTooLong()
 
+class EditLogbookForm(CreateLogbookForm):
+    pass
+
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8



More information about the Mpuls-commits mailing list