This commit is contained in:
alexandre-pereira 2015-03-20 23:47:02 +01:00
commit ce324172d2
2 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,10 @@ try :
cur.execute("TRUNCATE table domaines")
cur.execute("TRUNCATE table datations")
cur.execute("TRUNCATE table oeuvres")
cur.execute("TRUNCATE table referents")
cur.execute("TRUNCATE table config_jeus")
cur.execute("TRUNCATE table config_jeu_oeuvre")
cur.execute("TRUNCATE table password_resets")
# On parcourt le fichier xml
tree = ET.parse('inventaire.xml')
@ -199,6 +203,10 @@ try :
idoeuvre = insert(cur,"oeuvres",datas)
i+=1
#On Cree utilisateur decouvrir le musee
datas = { "id" : "1", "nom": "Découverte", "image" : "imgs/avatar/1.png" }
insert(cur,"referents",datas)
con.commit()
except mdb.Error, e:

BIN
SRC/public/imgs/avatar/1.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB