version 1.234, 2005/09/12 21:51:00
|
version 1.235, 2005/09/12 22:23:44
|
Line 1513 class ECHO_collection(Folder, Persistent
|
Line 1513 class ECHO_collection(Folder, Persistent
|
if not find: |
if not find: |
self.manage_addECHO_locale("en",'','') |
self.manage_addECHO_locale("en",'','') |
for content in contents: |
for content in contents: |
|
|
if content[1].meta_type in['ECHO_link','ECHO_externalLink']: |
if content[1].meta_type in['ECHO_link','ECHO_externalLink']: |
|
|
find=content[1].ZopeFind(content[1],obj_metatypes=('ECHO_mapText')) |
find=content[1].ZopeFind(content[1],obj_metatypes=('ECHO_mapText')) |
if find: |
if find: |
root=find[0][1] |
root=find[0][1] |
Line 2532 class ECHO_root(Folder,Persistent,Implic
|
Line 2534 class ECHO_root(Folder,Persistent,Implic
|
|
|
def setLanguage(self,lang): |
def setLanguage(self,lang): |
"""Set language cookie""" |
"""Set language cookie""" |
self.REQUEST.RESPONSE.setCookie('lang_exhibition',lang,path="") |
self.REQUEST.RESPONSE.setCookie('lang_exhibition',lang,path="/") |
|
|
def switchLanguage(self): |
def switchLanguage(self): |
"""Set language cookie""" |
"""Set language cookie""" |
Line 2541 class ECHO_root(Folder,Persistent,Implic
|
Line 2543 class ECHO_root(Folder,Persistent,Implic
|
else: |
else: |
lang="en" |
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']) |
self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) |
def getLanguage(self): |
def getLanguage(self): |
"""get language cookie""" |
"""get language cookie""" |