--- MPIWGWeb/MPIWGProjects.py 2005/05/27 08:34:37 1.47.2.5 +++ MPIWGWeb/MPIWGProjects.py 2005/05/27 09:12:24 1.47.2.6 @@ -168,12 +168,16 @@ class MPIWGRoot(ZSQLExtendFolder): folders=['MPIWGProject','Folder','ECHO_Navigation'] meta_type='MPIWGRoot' - def generateUrlProject(self,url): + def generateUrlProject(self,url,project=None): """erzeuge aus absoluter url, relative des Projektes""" + splitted=url.split("/") length=len(splitted) short=splitted[length-2:length] - base=self.REQUEST['URL1']+"/"+"/".join(short) + if project: + base=self.REQUEST['URL3']+"/"+"/".join(short) + else: + base=self.REQUEST['URL1']+"/"+"/".join(short) return base def isNewCapital(self,text=None,reset=None):