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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 8 16:58:52 CEST 2010


Author: fabien
Date: Thu Apr  8 16:58:51 2010
New Revision: 34400

URL: http://svn.erp5.org?rev=34400&view=rev
Log:
cover the case where reference = ''

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=34400&r1=34399&r2=34400&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py [utf8] Thu Apr  8 16:58:51 2010
@@ -118,7 +118,7 @@
         document = PermanentURLMixIn.__bobo_traverse__(self, request, name)
       except NotFound:
         not_found_page_ref = self.getLayoutProperty('layout_not_found_page_reference')
-        if not_found_page_ref is not None:
+        if not_found_page_ref:
           document = PermanentURLMixIn.getDocumentValue(self, name=not_found_page_ref)
         if document is None:
           # if no document found, fallback on default page template




More information about the Erp5-report mailing list