[Mpuls-commits] r2840 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon May 31 16:30:30 CEST 2010


Author: bh
Date: 2010-05-31 16:30:29 +0200 (Mon, 31 May 2010)
New Revision: 2840

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py (SearchCaseForm.editor): The "editor"
parameter is not always present, so supply a default value to
avoid errors.  The editor field is only part of the search form
for admins.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-05-31 13:55:57 UTC (rev 2839)
+++ base/trunk/ChangeLog	2010-05-31 14:30:29 UTC (rev 2840)
@@ -1,5 +1,12 @@
 2010-05-31  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/validators.py (SearchCaseForm.editor): The "editor"
+	parameter is not always present, so supply a default value to
+	avoid errors.  The editor field is only part of the search form
+	for admins.
+
+2010-05-31  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/templates/casemanagement/search.mako: HTML-escaping is
 	the default filter in templates, so it's wrong now to do it
 	explicitly.

Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2010-05-31 13:55:57 UTC (rev 2839)
+++ base/trunk/mpulsweb/lib/validators.py	2010-05-31 14:30:29 UTC (rev 2840)
@@ -595,7 +595,7 @@
     state = ForEach(String(), convert_to_list=True)
     own = Int(if_missing=0)
     standin = Int(if_missing=0)
-    editor = Int()
+    editor = Int(if_missing=-1)
     phase = ForEach(String(), convert_to_list=True)
     #sdate = String()
     #edate = String()



More information about the Mpuls-commits mailing list