Пример #1
0
    def returnDevice(self, lender, doer):
        lendlog = LendLog()
        lendlog.setDevice(self.__device.device_id)
        lendlog.setLender(lender)
        lendlog.setDoer(doer)
        lendlog.returnDevice(self.__device.lend_log_id)

        self.__device.lend_log_id = None
        db.session.add(self.__device)
        db.session.commit()
Пример #2
0
    def returnDevice(self, lender, doer):
        lendlog = LendLog()
        lendlog.setDevice(self.__device.device_id)
        lendlog.setLender(lender)
        lendlog.setDoer(doer)
        lendlog.returnDevice(self.__device.lend_log_id)

        self.__device.lend_log_id = None
        db.session.add(self.__device)
        db.session.commit()
Пример #3
0
 def lendDevice(self, lender, doer):
     lendlog = LendLog()
     lendlog.setDevice(self.__device.device_id)
     lendlog.setLender(lender)
     lendlog.setDoer(doer)
     lendlog.lendDevice()
Пример #4
0
 def lendDevice(self, lender, doer):
     lendlog = LendLog()
     lendlog.setDevice(self.__device.device_id)
     lendlog.setLender(lender)
     lendlog.setDoer(doer)
     lendlog.lendDevice()