refacto: rename variables
This commit is contained in:
parent
917b67484c
commit
d368b59cba
2 changed files with 39 additions and 37 deletions
|
@ -67,7 +67,7 @@ class FilmInterface():
|
|||
conn.close()
|
||||
|
||||
def selectFilm(self):
|
||||
f.printAll()
|
||||
f.list_all()
|
||||
rep = input("Entrez le code identifiant du film\n")
|
||||
try:
|
||||
self.filmCharge = f(rep)
|
||||
|
@ -77,7 +77,7 @@ class FilmInterface():
|
|||
self.menu()
|
||||
|
||||
def newFilm(self):
|
||||
self.filmCharge = f.newFilm()
|
||||
self.filmCharge = f.new_film()
|
||||
|
||||
def afficherFilm(self):
|
||||
if self.filmCharge:
|
||||
|
@ -124,9 +124,9 @@ class FilmInterface():
|
|||
print(
|
||||
"La valeur actuelle du champ %s est %s.\nVeuillez entrer la nouvelle valeur pour ce champ (et -1 si vous ne souhaitez finalement pas modifier le champ)\n" % (
|
||||
nomAttr, self.filmCharge.__getattr__(nomAttr)))
|
||||
newValue = f.makeListActors()
|
||||
elif nomAttr == "durée":
|
||||
self.filmCharge.__setattr__(nomAttr, f.input_duree())
|
||||
newValue = f.make_actors_list()
|
||||
elif nomAttr == "duree":
|
||||
newValue = f.input_duration()
|
||||
elif nomAttr == "couleur":
|
||||
newValue = f.input_color()
|
||||
elif nomAttr == "date":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue