From 605252c76ed5ec4bf399a5fbd28be6c3256a6602 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 20 Mar 2015 23:13:10 +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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/INITBASE/loader.py b/INITBASE/loader.py index c1d0b31..44090ab 100755 --- a/INITBASE/loader.py +++ b/INITBASE/loader.py @@ -44,6 +44,7 @@ try : cur.execute("TRUNCATE table domaines") cur.execute("TRUNCATE table datations") cur.execute("TRUNCATE table oeuvres") + cur.execute("TRUNCATE table referents") # On parcourt le fichier xml tree = ET.parse('inventaire.xml') @@ -199,6 +200,10 @@ try : idoeuvre = insert(cur,"oeuvres",datas) i+=1 + + #On Cree utilisateur decouvrir le muse + datas = { "id" : "1", "nom": "Découverte" } + insert(cur,"referents",datas) con.commit() except mdb.Error, e: