--- ECHO_content/ECHO_collection.py 2004/05/07 14:51:02 1.65 +++ ECHO_content/ECHO_collection.py 2004/05/07 15:07:22 1.66 @@ -922,24 +922,20 @@ class ECHO_collection(Folder, Persistent """Give list of coordinates""" subColTypes=['ECHO_collection','ECHO_externalLink','ECHO_resource'] ids=[] - for entry in self.__dict__.keys(): - object=getattr(self,entry) - try: - if object.meta_type in subColTypes: - for coordtemp in object.coords: - if len(coordtemp)>3: - coord=coordtemp[0:4] - label="" - if hasattr(object,'label') and not object.label=="": - label=object.label - elif hasattr(object,'title') and not object.title=="": - label=object.title - else: - label=object.getId() - ids.append([string.join(coord,", "),object.getId(),label,object,coordtemp,object.getViewClassification()]) - except: - """nothing""" - + for entrySearch in self.ZopeFind(self,obj_metatypes=subcolTypes): + object=entrySearch[1] + if hasattr(object,'coords'): + for coordtemp in object.coords: + if len(coordtemp)>3: + coord=coordtemp[0:4] + label="" + if hasattr(object,'label') and not object.label=="": + label=object.label + elif hasattr(object,'title') and not object.title=="": + label=object.title + else: + label=object.getId() + ids.append([string.join(coord,", "),object.getId(),label,object,coordtemp,object.getViewClassification()]) return ids