def prestation_to_list(Prestation): # Prestation -> List PrestationList = (Prestation.get_Prestation_id(),Prestation.get_Libelle_Prestation(),Prestation.get_Tarif_Horraire()) return PrestationList
def delete_Prestation(Prestation): try: cur.execute("""DELETE FROM EnsPrestations WHERE Prestation_id = ?""",(Prestation.get_Prestation_id(),)) conn.commit() except: print "Erreur lors de la suppression !"