[Erp5-report] r26908 - /erp5/trunk/products/ERP5/Document/WebSection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 11 10:56:40 CEST 2009
Author: kazuhiko
Date: Mon May 11 10:56:38 2009
New Revision: 26908
URL: http://svn.erp5.org?rev=26908&view=rev
Log:
getBreadcrumbItemList's default argument should be same, that is the same API of WebSection_getBreadcrumbItemList.
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=26908&r1=26907&r2=26908&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py [utf8] Mon May 11 10:56:38 2009
@@ -298,7 +298,7 @@
return result
security.declareProtected(Permissions.View, 'getBreadcrumbItemList')
- def getBreadcrumbItemList(self, document):
+ def getBreadcrumbItemList(self, document=None):
"""
Return a section dependent breadcrumb in the form
of a list of (title, document) tuples.
@@ -307,6 +307,8 @@
portal type dependent script:
WebSection_getBreadcrumbItemList
"""
+ if document is None:
+ document = self
cache = getReadOnlyTransactionCache(self)
if cache is not None:
key = ('getBreadcrumbItemList', self, document.getPath())
More information about the Erp5-report
mailing list