--- MPIWGWeb/Attic/MPIWGRoot.py 2008/09/05 14:08:24 1.1.2.16 +++ MPIWGWeb/Attic/MPIWGRoot.py 2008/09/08 08:40:05 1.1.2.18 @@ -60,8 +60,10 @@ class MPIWGRoot(ZSQLExtendFolder): 'WEB_project_description':'WEB_project_description', 'WEB_related_pub':'WEB_related_pub'} + # (is this used?) folders=['MPIWGProject','Folder','ECHO_Navigation'] - + # language of this instance + lang = 'en' # types of objects that show up in navigation nav_meta_types = ['MPIWGTemplate','MPIWGLink','MPIWGFolder'] @@ -226,6 +228,9 @@ class MPIWGRoot(ZSQLExtendFolder): else: return array[idx] + def getLang(self): + """returns the default language""" + return self.lang def browserCheck(self): """check the browsers request to find out the browser type""" @@ -591,12 +596,14 @@ class MPIWGRoot(ZSQLExtendFolder): pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','changeMPIWGRootForm')).__of__(self) return pt() - def changeMPIWGRoot(self,title,disciplineList,themesList,connection_id,RESPONSE=None): + def changeMPIWGRoot(self,title,disciplineList,themesList,connection_id,lang=None,RESPONSE=None): """change""" self.title=title self.connection_id=connection_id self.disciplineList=disciplineList self.themesList=themesList + if lang is not None: + self.lang = lang if RESPONSE is not None: RESPONSE.redirect('manage_main') @@ -687,7 +694,7 @@ class MPIWGRoot(ZSQLExtendFolder): {'label':'Reindex catalogs','action':'reindexCatalogs'}, {'label':'Main config','action':'changeMPIWGRootForm'}, {'label':'add e-mails','action':'showNewDBEntries'}, - {'label':'update the institutsbibliography','action':'""" for obj in self.getTree(dep, date, onlyActive, onlyArchived): - linkStr="""http://wwwneu.mpiwg-berlin.mpg.de/en/research/projects/%s""" + linkStr="""http://www.mpiwg-berlin.mpg.de/en/research/projects/%s""" rss+="""""" rss+=linkStr%obj[3].getId() rss+=""""""