Commit e3534040 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

getBreadcrumbItemList's default argument should be same, that is the same API...

getBreadcrumbItemList's default argument should be same, that is the same API of WebSection_getBreadcrumbItemList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26908 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b5e8550d
...@@ -298,7 +298,7 @@ class WebSection(Domain, PermanentURLMixIn): ...@@ -298,7 +298,7 @@ class WebSection(Domain, PermanentURLMixIn):
return result return result
security.declareProtected(Permissions.View, 'getBreadcrumbItemList') security.declareProtected(Permissions.View, 'getBreadcrumbItemList')
def getBreadcrumbItemList(self, document): def getBreadcrumbItemList(self, document=None):
""" """
Return a section dependent breadcrumb in the form Return a section dependent breadcrumb in the form
of a list of (title, document) tuples. of a list of (title, document) tuples.
...@@ -307,6 +307,8 @@ class WebSection(Domain, PermanentURLMixIn): ...@@ -307,6 +307,8 @@ class WebSection(Domain, PermanentURLMixIn):
portal type dependent script: portal type dependent script:
WebSection_getBreadcrumbItemList WebSection_getBreadcrumbItemList
""" """
if document is None:
document = self
cache = getReadOnlyTransactionCache(self) cache = getReadOnlyTransactionCache(self)
if cache is not None: if cache is not None:
key = ('getBreadcrumbItemList', self, document.getPath()) key = ('getBreadcrumbItemList', self, document.getPath())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment