def url(self, suffix="", **params): u = self.key + "/" + processors._safepath(self.get('name', 'no name')) + suffix if params: u += '?' + urllib.urlencode(params) return u
def url(self, suffix="", **params): u = self.key + "/" + processors._safepath(self.title or "untitled") + suffix if params: u += '?' + urllib.urlencode(params) return u