def from_index_(d_index): # Series s = BaseModel.from_index(Affaire.table_name, d_index) return Affaire(d_index, s.loc[[f.name for f in Affaire.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index('fournisseur', d_index) return Fournisseur( d_index, s.loc[[f.name for f in Fournisseur.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index(Devis.table_name, d_index) return Devis(d_index, s.loc[[f.name for f in Devis.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index('client', d_index) return Client(d_index, s.loc[[f.name for f in Client.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index('facture', d_index) return Facture(d_index, s.loc[[f.name for f in Facture.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index('employe', d_index) return Employe(d_index, s.loc[[f.name for f in Employe.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index('chantier', d_index) return Chantier(d_index, s.loc[[f.name for f in Chantier.l_fields()]].to_dict())
def from_index_(d_index): # Series s = BaseModel.from_index('commande', d_index) return Commande(d_index, s.loc[[f.name for f in Commande.l_fields()]].to_dict())