Diff for /ECHO_content/ECHO_collection.py between versions 1.310.2.5 and 1.310.2.7

version 1.310.2.5, 2012/01/18 16:57:00 version 1.310.2.7, 2012/08/23 10:25:32
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 80  except: Line 81  except:
         pass          pass
   
 from ECHO_movie import *  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 xmlrpclib
   
 import logging  import logging
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):
Line 2486  class ECHO_root(Folder,Persistent,Implic Line 2477  class ECHO_root(Folder,Persistent,Implic
         else:          else:
             return u""              return u""
                   
     link2html=vlp_xmlhelpers.link2html      #link2html=vlp_xmlhelpers.link2html
     related2html=vlp_xmlhelpers.related2html      #related2html=vlp_xmlhelpers.related2html
   
     xml2html=vlp_xmlhelpers.xml2html      #xml2html=vlp_xmlhelpers.xml2html
     
     checkRef=vlp_xmlhelpers.checkRef      #checkRef=vlp_xmlhelpers.checkRef
           
 #    def checkRef(self,ref):  #    def checkRef(self,ref):
 #            if ref[0:3]=='lit':  #            if ref[0:3]=='lit':

Removed from v.1.310.2.5  
changed lines
  Added in v.1.310.2.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>