remplissage brut BDD

This commit is contained in:
Alice 2018-02-11 16:32:04 +01:00
parent 601909c7cf
commit 3cece247c8
4 changed files with 20 additions and 18 deletions

View file

@ -1,2 +1,3 @@
* débug -> bien avancé * débug -> bien avancé
* remplissage * rendre plus joli
* corriger remplissage

Binary file not shown.

View file

@ -26,23 +26,24 @@ class film():
self.couleur = _couleur self.couleur = _couleur
self.formatCopie = "35mm" self.formatCopie = "35mm"
self.langST = "VOSTFR" self.langST = "VOSTFR"
self.image = ""
def __init__(self, dic): # def __init__(self, dic):
"""ceci est une aide""" # """ceci est une aide"""
self.i = dic['id'] # self.i = dic['id']
self.idN = dic['idN'] # self.idN = dic['idN']
self.date = dic['date'] # self.date = dic['date']
self.nom =dic['nom'] # self.nom =dic['nom']
self.acteurs = dic['acteurs'] # self.acteurs = dic['acteurs']
self.realisateur = dic['realisateur'] # self.realisateur = dic['realisateur']
self.duree =dic['duree'] # self.duree =dic['duree']
self.synopsis = dic['synopsis'] # self.synopsis = dic['synopsis']
self.pays = dic['pays'] # self.pays = dic['pays']
self.annee = dic['annee'] # self.annee = dic['annee']
self.youtube = dic['youtube'] # self.youtube = dic['youtube']
self.couleur = dic['couleur'] # self.couleur = dic['couleur']
self.formatCopie = dic['formatCopie'] # self.formatCopie = dic['formatCopie']
self.langST = dic['langST'] # self.langST = dic['langST']
def blog(self): def blog(self):
@ -254,7 +255,7 @@ def liste(db):
lis = sorted(lis) lis = sorted(lis)
for tup in lis: for tup in lis:
k = tup[1] k = tup[1]
print(k, ' : ', db[k].nom) print(k, ' : ', db[k].i, db[k].nom)
return None return None

Binary file not shown.