From fa80ffb1713901d1cc9fbdace20eb61774ce25ec Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 20 Mar 2015 18:32:19 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9=C2=A0:=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20INITBASE/loader.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INITBASE/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INITBASE/loader.py b/INITBASE/loader.py index 332fc45..ff04d57 100755 --- a/INITBASE/loader.py +++ b/INITBASE/loader.py @@ -8,7 +8,7 @@ import httplib def exists(site, path): c = httplib.HTTPConnection(site) c.request('HEAD', path) - response = conn.getresponse() + response = c.getresponse() c.close() return response.status == 200 @@ -108,7 +108,7 @@ try : image = child.text.encode('utf-8') # On s'interesee qu'aux oeuvres ayant une image - if image != "NULL" and exists('http://www.augustins.org:80','/documents/10180/156407/'+image): + if image != "NULL" and exists('www.augustins.org','/documents/10180/156407/'+image): if str(datation)+str(datation2) in listeDatation : iddatation = listeDatation[str(datation)+str(datation2)] else :