def _geturl(self, path=None): if not path: return self.rootpath path = self.rootpath + '/' + urllib.quote(path) return _canonicalize_path(path)