version 1.233, 2005/08/19 07:53:16
|
version 1.235, 2005/09/12 22:23:44
|
Line 1
|
Line 1
|
|
|
|
|
"""New version of the product started February, 8th. Without scientific classification, use content-type for further classification.""" |
"""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. |
"""Echo collection provides the classes for the ECHO content web-site. |
|
|
Line 1515 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 2534 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 2543 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""" |