From be260cdba7d421f674ed0981b0f17adaaf4e843a Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 14 May 2009 14:11:19 +0000 Subject: [PATCH] make it possible to set 0 value in layout property. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26985 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/WebSection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/WebSection.py b/product/ERP5/Document/WebSection.py index e1537b4262..d8d50dd897 100644 --- a/product/ERP5/Document/WebSection.py +++ b/product/ERP5/Document/WebSection.py @@ -129,7 +129,7 @@ class WebSection(Domain, PermanentURLMixIn): 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 -- 2.30.9