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é
* remplissage
* rendre plus joli
* corriger remplissage

Binary file not shown.

View file

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

Binary file not shown.