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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 29 16:13:08 CEST 2010


Author: torsten
Date: 2010-04-29 16:13:08 +0200 (Thu, 29 Apr 2010)
New Revision: 2565

Modified:
   wasko/branches/2.0/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py (EditSettingsForm): Load min and max
	setting from config.


Modified: wasko/branches/2.0/mpulsweb/lib/validators.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/validators.py	2010-04-29 14:12:48 UTC (rev 2564)
+++ wasko/branches/2.0/mpulsweb/lib/validators.py	2010-04-29 14:13:08 UTC (rev 2565)
@@ -479,7 +479,9 @@
 class EditSettingsForm(BaseFormValidator):
 
     anon_transfer = String(if_missing='off')
-    max_speicherdauer = MaxMinInt(min=7, max=180, not_empty=True)
+    max_speicherdauer = MaxMinInt(min=g.mpuls_config.get('case', 'remindermindays'), 
+                                  max=g.mpuls_config.get('case', 'remindermaxdays'), 
+                                  not_empty=True)
 
 
 class NewPasswordForm(BaseFormValidator):



More information about the Mpuls-commits mailing list