示例#1
0
文件: base.py 项目: pars-linux/uludag
    def commitDB(self):
        """ Commit changes to DB """

        self._sq.commit()

        if self.config.updateSignAfterEachCommit:
            update_sum(self._db)
示例#2
0
    def commitDB(self):
        """ Commit changes to DB """

        self._sq.commit()

        if self.config.updateSignAfterEachCommit:
            update_sum(self._db)
示例#3
0
 def closeAndUpdateSum(self):
     """ It closes the db and updates db sum file """
     if self._sq:
         self._sq.close()
         update_sum(self._db)
示例#4
0
 def closeAndUpdateSum(self):
     """ It closes the db and updates db sum file """
     if self._sq:
         self._sq.close()
         update_sum(self._db)
示例#5
0
 def updateLocalSum():
     if os.path.exists(self.local_db):
         update_sum(self.local_db)