Example #1
0
 def update(self, bx):
     b = self.getById(bx.id)
     b.nom = bx.nom
     b.narx = bx.narx
     b.izoh = bx.izoh
     session.commit()
     return True
    def update(self, mu):
        m = self.getByID(mu.id)
        m.nom = mu.nom
        m.izoh = mu.izoh
        session.commit()

        return True
 def update(self,bs):
     b = session.getById(bs.id)
     b.nom = bs.nom
     b.boshVaqt = bs.boshVaqt
     b.tugashVaqt = bs.tugashVaqt
     b.izoh = bs.izoh
     session.commit()
     return True
 def update(self, bm):
     b = session.getById(bm.id)
     b.ism = bm.ism
     b.familiya = bm.familiya
     b.telRaqam = bm.telRaqam
     b.izoh = bm.izoh
     session.commit()
     return True
 def add(self,bs):
     session.add(bs)
     session.commit()
     return True
 def delete(self, bs):
     b = self.getById(bs.id)
     session.delete(b)
     session.commit()
     return True
 def add(self, mt):
     session.add(mt)
     session.commit()
     return True
 def delete(self, mt):
     m = self.getById(mt.id)
     session.delete(m)
     session.commit()
     return True
 def update(self, mt):
     m = self.getById(mt.id)
     m.nom = mt.nom
     m.izoh = mt.izoh
     session.commit()
     return True
Example #10
0
 def update(self,s):
     m = self.getById(s.id)
     m.nom = s.nom
     m.izoh = s.izoh
     session.commit()
     return True
 def delete(self, mu):
     m = self.getByID(mu.id)
     session.delete(m)
     session.commit()
     return True