[Erp5-report] r27868 - /erp5/trunk/products/ERP5Form/ListBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jul 2 12:19:36 CEST 2009


Author: tatuya
Date: Thu Jul  2 12:19:32 2009
New Revision: 27868

URL: http://svn.erp5.org?rev=27868&view=rev
Log:
Just revert the commit r27857.

The reason why:
For example, if a parameter is set a None in the 'Default Parameters'
property in a Listbox configuration, the parameter unfortunately discarded.

Modified:
    erp5/trunk/products/ERP5Form/ListBox.py

Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=27868&r1=27867&r2=27868&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Thu Jul  2 12:19:32 2009
@@ -100,7 +100,7 @@
     # It is probably needed at a more generic level (Forms ? Selection ?), or
     # even a more specific one (limited to HTML ?)...
     for key, value in kw.items():
-      if value == '' or value is None:
+      if value == '':
         kw.pop(key)
     return getattr(self.context, self.method_name)(*args, **kw)
 




More information about the Erp5-report mailing list