[Erp5-report] r26985 - /erp5/trunk/products/ERP5/Document/WebSection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 14 16:11:20 CEST 2009


Author: kazuhiko
Date: Thu May 14 16:11:19 2009
New Revision: 26985

URL: http://svn.erp5.org?rev=26985&view=rev
Log:
make it possible to set 0 value in layout property.

Modified:
    erp5/trunk/products/ERP5/Document/WebSection.py

Modified: erp5/trunk/products/ERP5/Document/WebSection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/WebSection.py?rev=26985&r1=26984&r2=26985&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py [utf8] Thu May 14 16:11:19 2009
@@ -129,7 +129,7 @@
       section = aq_inner(self)
       while section.getPortalType() in ('Web Section', 'Web Site'):
         result = section.getProperty(key, MARKER)
-        if result is not MARKER and result:
+        if result not in (MARKER, None):
           return result
         section = section.aq_parent
       return default




More information about the Erp5-report mailing list