req.py
branchstable
changeset 4892 7ee8f128be9e
parent 4891 90203ec7b3e3
child 4899 c666d265fb95
equal deleted inserted replaced
4891:90203ec7b3e3 4892:7ee8f128be9e
   229 
   229 
   230 
   230 
   231     def build_url_params(self, **kwargs):
   231     def build_url_params(self, **kwargs):
   232         """return encoded params to incorporate them in an URL"""
   232         """return encoded params to incorporate them in an URL"""
   233         args = []
   233         args = []
   234         for param, values in kwargs.items():
   234         for param, values in kwargs.iteritems():
   235             if not isinstance(values, (list, tuple)):
   235             if not isinstance(values, (list, tuple)):
   236                 values = (values,)
   236                 values = (values,)
   237             for value in values:
   237             for value in values:
   238                 args.append(u'%s=%s' % (param, self.url_quote(value)))
   238                 args.append(u'%s=%s' % (param, self.url_quote(value)))
   239         return '&'.join(args)
   239         return '&'.join(args)