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