--- ECHO_content/ECHO_collection.py 2012/01/18 16:57:00 1.310.2.5 +++ ECHO_content/ECHO_collection.py 2012/08/23 10:25:32 1.310.2.7 @@ -36,6 +36,7 @@ from Globals import Persistent, package_ from Acquisition import Implicit from Products.ZCatalog.CatalogPathAwareness import CatalogAware from Products.ZCTextIndex.ZCTextIndex import manage_addLexicon +import ECHO_helpers from Acquisition import aq_parent try: from Products.MetaDataProvider.MetaDataClient import MetaDataClient @@ -80,7 +81,7 @@ except: pass from ECHO_movie import * -import vlp_xmlhelpers #TODO: vlp elemente aus echo herausnehmen +#import vlp_xmlhelpers #TODO: vlp elemente aus echo herausnehmen import xmlrpclib import logging @@ -732,25 +733,15 @@ class ECHO_collection(CatalogAware, Fold p = aq_parent(p.context) return subsec + + + 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""" - # 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 - + return ECHO_helpers.getHierCrumbs(self) def exportImportObjects_html(self,RESPONSE): @@ -2486,12 +2477,12 @@ class ECHO_root(Folder,Persistent,Implic else: return u"" - link2html=vlp_xmlhelpers.link2html - related2html=vlp_xmlhelpers.related2html + #link2html=vlp_xmlhelpers.link2html + #related2html=vlp_xmlhelpers.related2html - xml2html=vlp_xmlhelpers.xml2html + #xml2html=vlp_xmlhelpers.xml2html - checkRef=vlp_xmlhelpers.checkRef + #checkRef=vlp_xmlhelpers.checkRef # def checkRef(self,ref): # if ref[0:3]=='lit':