equal
deleted
inserted
replaced
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) |