[seloger] fix #1883 handle special characters
This commit is contained in:
parent
0f4ee5d121
commit
339283a3c3
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ class SeLogerBrowser(PagesBrowser):
|
|||
housing = URL('http://ws.seloger.com/annonceDetail.xml\?idAnnonce=(?P<_id>\d+)&noAudiotel=(?P<noAudiotel>\d)', HousingPage)
|
||||
|
||||
def search_geo(self, pattern):
|
||||
return self.cities.open(pattern=pattern.encode('utf-8')).iter_cities()
|
||||
return self.cities.open(pattern=pattern).iter_cities()
|
||||
|
||||
TYPES = {Query.TYPE_RENT: 1,
|
||||
Query.TYPE_SALE: 2
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class SeLogerTest(BackendTest):
|
|||
query.area_min = 20
|
||||
query.cost_max = 1000
|
||||
query.cities = []
|
||||
for city in self.backend.search_city('paris'):
|
||||
for city in self.backend.search_city(u'Ferté'):
|
||||
city.backend = self.backend.name
|
||||
query.cities.append(city)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue