--- zogiLib/zogiLib.py 2008/07/31 15:21:59 1.69 +++ zogiLib/zogiLib.py 2008/11/20 10:44:24 1.70 @@ -358,7 +358,7 @@ class zogiLib(Folder): return {} - def zogilibPath(self, otherbase=None): + def zogilibPathOLD(self, otherbase=None): """returns an URL to the zogiLib instance""" url = self.REQUEST['URL1'] # should end with "/" @@ -373,6 +373,20 @@ class zogiLib(Folder): url += '/' return url + def zogilibPath(self, otherbase=None): + """returns an URL to the zogiLib instance""" + url = self.absolute_url() + # should end with "/" + if len(url) > 0 and url[-1] != '/': + url += '/' + if type(otherbase) is str: + url += otherbase + else: + url += self.basePath + # should still end with "/" + if len(url) > 0 and url[-1] != '/': + url += '/' + return url def zogilibAction(self, action, otherbase=None): """returns a URL with zogilib path and action""" url = self.zogilibPath(otherbase)