[leboncoin] properly fill object

This commit is contained in:
Bezleputh 2014-10-01 17:41:43 +02:00
commit 11e124c860
2 changed files with 3 additions and 3 deletions

View file

@ -51,5 +51,5 @@ class LeboncoinBrowser(PagesBrowser):
advert_type=advert_type,
ret=ret).get_housing_list()
def get_housing(self, _id):
return self.housing.go(_id=_id).get_housing()
def get_housing(self, _id, obj=None):
return self.housing.go(_id=_id).get_housing(obj=obj)

View file

@ -50,7 +50,7 @@ class LeboncoinModule(Module, CapHousing):
return self.browser.get_housing(_id)
def fill_housing(self, housing, fields):
return self.browser.get_housing(housing.id)
return self.browser.get_housing(housing.id, housing)
def fill_photo(self, photo, fields):
if 'data' in fields and photo.url and not photo.data: