--- ECHO_content/ECHO_collection.py 2005/08/15 13:34:04 1.232 +++ ECHO_content/ECHO_collection.py 2005/09/12 21:51:00 1.234 @@ -1,5 +1,3 @@ - - """New version of the product started February, 8th. Without scientific classification, use content-type for further classification.""" """Echo collection provides the classes for the ECHO content web-site. @@ -1509,12 +1507,13 @@ class ECHO_collection(Folder, Persistent def localizeObjects(self): """localize all objects""" - contents=self.ZopeFind(self,obj_metatypes=['ECHO_link','ECHO_mapText']) + contents=self.ZopeFind(self,obj_metatypes=['ECHO_externalLink','ECHO_link','ECHO_mapText']) + find=self.ZopeFind(self,obj_ids=('locale_en')) if not find: self.manage_addECHO_locale("en",'','') for content in contents: - if content[1].meta_type=='ECHO_link': + if content[1].meta_type in['ECHO_link','ECHO_externalLink']: find=content[1].ZopeFind(content[1],obj_metatypes=('ECHO_mapText')) if find: root=find[0][1]