--- ECHO_content/ECHO_collection.py 2005/08/15 13:34:04 1.232 +++ ECHO_content/ECHO_collection.py 2005/09/12 22:23:44 1.235 @@ -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,15 @@ 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] @@ -2533,7 +2534,7 @@ class ECHO_root(Folder,Persistent,Implic def setLanguage(self,lang): """Set language cookie""" - self.REQUEST.RESPONSE.setCookie('lang_exhibition',lang,path="") + self.REQUEST.RESPONSE.setCookie('lang_exhibition',lang,path="/") def switchLanguage(self): """Set language cookie""" @@ -2542,7 +2543,7 @@ class ECHO_root(Folder,Persistent,Implic else: lang="en" - self.REQUEST.RESPONSE.setCookie('lang_exhibition',lang,path="") + self.REQUEST.RESPONSE.setCookie('lang_exhibition',lang,path="/") self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) def getLanguage(self): """get language cookie"""