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

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


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

Modified:
   base/trunk/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py (BundleActionForm): Only covert ids to integer if they are not "None".


Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py	2011-01-07 11:32:37 UTC (rev 4472)
+++ base/trunk/mpulsweb/lib/validators.py	2011-01-07 11:34:11 UTC (rev 4473)
@@ -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()])
+    all_ids = Wrapper(to_python=lambda s: [int(item) for item in s.split() if item != 'None'])
 
 
 class ExportSelectorValidator(BaseFormValidator):



More information about the Mpuls-commits mailing list