Diff for /ECHO_content/ECHO_collection.py between versions 1.237 and 1.238

version 1.237, 2005/10/13 15:07:26 version 1.238, 2005/10/23 09:46:26
Line 1563  class ECHO_collection(Folder, Persistent Line 1563  class ECHO_collection(Folder, Persistent
   
     path="/mpiwg/online/permanent/shipbuilding"      path="/mpiwg/online/permanent/shipbuilding"
   
       def getTitleAndLabel(self):
           """gibt title und label zurueck"""
           return (getattr(self,'title',''),getattr(self,'label',''))
   
     def localizeObjects(self):      def localizeObjects(self):
             """localize all objects"""              """localize all objects"""
             contents=self.ZopeFind(self,obj_metatypes=['ECHO_externalLink','ECHO_link','ECHO_mapText'])              contents=self.ZopeFind(self,obj_metatypes=['ECHO_externalLink','ECHO_link','ECHO_mapText'])
Line 2576  class ECHO_root(Folder,Persistent,Implic Line 2580  class ECHO_root(Folder,Persistent,Implic
           
     meta_type="ECHO_root"      meta_type="ECHO_root"
           
     def findObjectFromFulltext(self,url=None,existUri=None):      
       def findObjectFromFulltext(self,existUri):
         '''          '''
                   
         @param url:          @param url:
         @param existUri:          @param existUri:
         '''          '''
   
           if existUri:
         #TODO: at the moment assume that the filename is unique, the whole has to changed to a system of ids.          #TODO: at the moment assume that the filename is unique, the whole has to changed to a system of ids.
         return None              filename=existUri.split("/")[-1]
           
           founds=self.resourceCatalog.search({'fullTextUrl':os.path.splitext(filename)[0]})  
           
           ret=[(found.title,found.getObject().absolute_url(),found.getObject().aq_parent.absolute_url()) for found in founds]
           
           return ret
                   
     def reindex(self,RESPONSE=None):      def reindex(self,RESPONSE=None):
         """indiziere alle Objecte neu"""          """indiziere alle Objecte neu"""

Removed from v.1.237  
changed lines
  Added in v.1.238


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