def _construct_ops(self, url, params): return '{}?{}'.format( url, urlencode( {k: unicode(v).encode('utf-8') for k, v in iteritems(params)}))
def prepare_city(self, city): if city is not None: self.city = unicode(city)
def __str__(self): return unicode(getattr(self, 'url'))
def prepare_keyword(self, keyword): if keyword is not None: self.keyword = unicode(keyword)