--- ECHO_content/ECHO_Nav.py 2006/02/13 16:41:49 1.73 +++ ECHO_content/ECHO_Nav.py 2006/05/15 16:04:52 1.75 @@ -437,6 +437,15 @@ class ECHO_navigation(Folder): """Navigations Element""" meta_type="ECHO_Navigation" management_page_charset="utf-8" + + def getUsername(self): + """get name of user""" + username=str(self.REQUEST['AUTHENTICATED_USER']) + if username=='Anonymous User': + return None + else: + return username + def searchExternalCollection(self,url,simpleSearch): """search external collection via xmlrpc""" server=xmlrpclib.Server(url) @@ -970,7 +979,7 @@ def createPath(self,url1,url2): if self.REQUEST.has_key('VirtualRootPhysicalPath'): vp="/".join(self.REQUEST['VirtualRootPhysicalPath']) - if vp[0]=="/": + if (len(vp)>0) and vp[0]=="/": vp=vp[1:] url2=url2.replace(vp+"/",'')