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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jan 7 12:52:34 CET 2011


Author: torsten
Date: 2011-01-07 12:52:34 +0100 (Fri, 07 Jan 2011)
New Revision: 4476

Modified:
   base/trunk/mpulsweb/lib/validators.py
Log:
Reverted former change. Check if id is integer for all_ids is done in
controller now.


Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2011-01-07 11:42:50 UTC (rev 4475)
+++ base/trunk/mpulsweb/lib/validators.py	2011-01-07 11:52:34 UTC (rev 4476)
@@ -705,7 +705,7 @@
     case_id = ForEach(Int(), convert_to_list=True)
     id_field = String(if_missing=None)
     sql_where = String(if_missing=None)
-    all_ids = Wrapper(to_python=lambda s: [int(item) for item in s.split() if item != 'None'])
+    all_ids = Wrapper(to_python=lambda s: [int(item) for item in s.split()])
 
 
 class ExportSelectorValidator(BaseFormValidator):



More information about the Mpuls-commits mailing list