From 04220ca44d584f99f697af651377237e0dfde974 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Sat, 11 Oct 2014 13:47:04 +0200 Subject: [PATCH] [pap] fix image retrieving --- modules/pap/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pap/module.py b/modules/pap/module.py index 0c422eda..989030f5 100644 --- a/modules/pap/module.py +++ b/modules/pap/module.py @@ -63,7 +63,7 @@ class PapModule(Module, CapHousing): def fill_photo(self, photo, fields): if 'data' in fields and photo.url and not photo.data: - photo.data = self.browser.readurl(photo.url) + photo.data = self.browser.open(photo.url).content return photo OBJECTS = {Housing: fill_housing,