version 1.310.2.5, 2012/01/18 16:57:00
|
version 1.310.2.6, 2012/01/19 19:03:28
|
Line 36 from Globals import Persistent, package_
|
Line 36 from Globals import Persistent, package_
|
from Acquisition import Implicit |
from Acquisition import Implicit |
from Products.ZCatalog.CatalogPathAwareness import CatalogAware |
from Products.ZCatalog.CatalogPathAwareness import CatalogAware |
from Products.ZCTextIndex.ZCTextIndex import manage_addLexicon |
from Products.ZCTextIndex.ZCTextIndex import manage_addLexicon |
|
import ECHO_helpers |
from Acquisition import aq_parent |
from Acquisition import aq_parent |
try: |
try: |
from Products.MetaDataProvider.MetaDataClient import MetaDataClient |
from Products.MetaDataProvider.MetaDataClient import MetaDataClient |
Line 733 class ECHO_collection(CatalogAware, Fold
|
Line 734 class ECHO_collection(CatalogAware, Fold
|
|
|
return subsec |
return subsec |
|
|
def getHierCrumbs(self): |
|
"""returns a list of hierarchical breadcrumbs from self to the ECHO_root""" |
|
# crumb for this object |
|
crumb = {'obj': self, |
|
'url': self.absolute_url(), |
|
'label': self.getLabel()} |
|
crumbs = [crumb] |
|
# call the parent's method recursively |
|
parent = aq_parent(self) |
|
if hasattr(parent, 'getHierCrumbs'): |
|
if self.title: |
|
return parent.getHierCrumbs() + crumbs |
|
else: |
|
# if there's no title, skip this level |
|
return parent.getHierCrumbs() |
|
|
|
return crumbs |
def getCrumb(self): |
|
"""returns breadcrumb for this object""" |
|
return ECHO_helpers.getCrumb(self) |
|
|
|
def getHierCrumbs(self): |
|
"""returns a list of hierarchical breadcrumbs from self to the ECHO_root""" |
|
return ECHO_helpers.getHierCrumbs(self) |
|
|
|
|
def exportImportObjects_html(self,RESPONSE): |
def exportImportObjects_html(self,RESPONSE): |