[Erp5-report] r30891 - /erp5/trunk/products/ERP5Form/Form.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 27 15:38:21 CET 2009


Author: jerome
Date: Fri Nov 27 15:38:20 2009
New Revision: 30891

URL: http://svn.erp5.org?rev=30891&view=rev
Log:
There's no reason to change None to '' in the case of default.
The comment explaining why it has been done like this is not true anymore.

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

Modified: erp5/trunk/products/ERP5Form/Form.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Form.py?rev=30891&r1=30890&r2=30891&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Form.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/Form.py [utf8] Fri Nov 27 15:38:20 2009
@@ -129,13 +129,6 @@
     if callable(value):
       value = value.__of__(field)
       #value=value() # Mising call ??? XXX Make sure compatible with listbox methods
-
-    if id == 'default':
-      # We make sure we convert values to empty strings
-      # for most fields (so that we do not get a 'value'
-      # message on screen)
-      # This can be overriden by using TALES in the field
-      if value is None: value = ''
 
     return value
 




More information about the Erp5-report mailing list