[Erp5-report] r34396 fabien - /erp5/trunk/products/ERP5/Document/WebSection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 8 16:46:21 CEST 2010
Author: fabien
Date: Thu Apr 8 16:46:19 2010
New Revision: 34396
URL: http://svn.erp5.org?rev=34396&view=rev
Log:
if no error page reference is defined do not search documents without
reference, but return the default one.
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=34396&r1=34395&r2=34396&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py [utf8] Thu Apr 8 16:46:19 2010
@@ -113,11 +113,13 @@
else:
request.set(web_param, False)
+ document = None
try:
document = PermanentURLMixIn.__bobo_traverse__(self, request, name)
except NotFound:
not_found_page_ref = self.getLayoutProperty('layout_not_found_page_reference')
- document = PermanentURLMixIn.getDocumentValue(self, name=not_found_page_ref)
+ if not_found_page_ref is not None:
+ document = PermanentURLMixIn.getDocumentValue(self, name=not_found_page_ref)
if document is None:
# if no document found, fallback on default page template
document = PermanentURLMixIn.__bobo_traverse__(self, request,
More information about the Erp5-report
mailing list