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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jul 1 11:47:16 CEST 2008


Author: romain
Date: Tue Jul  1 11:47:15 2008
New Revision: 22141

URL: http://svn.erp5.org?rev=22141&view=rev
Log:
Do not get stat_method if stat_method_id is None.

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=22141&r1=22140&r2=22141&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Tue Jul  1 11:47:15 2008
@@ -1910,7 +1910,7 @@
           # If a stat method is not specified, use the result in the context itself.
           original_value = getattr(context, alias)
           processed_value = original_value
-        else:
+        elif stat_method_id is not None:
           stat_method = getattr(context, stat_method_id)
           if callable(stat_method):
             try:




More information about the Erp5-report mailing list