From 06588ff5d0f8d3b48b557e89a17984bb3da25699 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 20 Mar 2015 18:59:52 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/INITBASE/loader.py b/INITBASE/loader.py index c16fb06..6d2c79a 100755 --- a/INITBASE/loader.py +++ b/INITBASE/loader.py @@ -4,7 +4,7 @@ import MySQLdb as mdb import sys import re import httplib -import sys + def exists(site, path): c = httplib.HTTPConnection(site) @@ -48,10 +48,10 @@ try : # On parcourt le fichier xml tree = ET.parse('inventaire.xml') root = tree.getroot() - + i=0 # Pour chaque oeuvre for o in root.iter('oeuvre'): - sys.stdout.write('.') + print(i) idtechnique = "NULL" idmatiere = "NULL" iddomaine= "NULL" @@ -198,6 +198,7 @@ try : del datas[key] idoeuvre = insert(cur,"oeuvres",datas) + i++ con.commit() except mdb.Error, e: