예제 #1
0
    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())
예제 #2
0
    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())
예제 #3
0
    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())
예제 #4
0
 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())
예제 #5
0
    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())
예제 #6
0
 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())
예제 #7
0
    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())
예제 #8
0
 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())