예제 #1
0
 def savedbas(self, dbId, fname):
     if not imgdb.savedb(dbId, fname):
         log.error("Error saving image database")
         return 0
     else:
         dbSpace = self.dbSpaces[dbId]
         dbSpace.lastSaveTime = time.time()
         dbSpace.fileName = fname
         log.info('| Database id=%s saved to "%s"' % (dbSpace, fname))
         return 1
예제 #2
0
 def savedbas(self, dbId, fname):
     if not imgdb.savedb(dbId, fname):
         log.error("Error saving image database")
         return 0
     else:
         dbSpace = self.dbSpaces[dbId]
         dbSpace.lastSaveTime = time.time()
         dbSpace.fileName = fname
         log.info('| Database id=%s saved to "%s"' % (dbSpace, fname))
         return 1
예제 #3
0
 def savedb(self, dbId):
     return imgdb.savedb(dbId, self.dbSpaces[dbId].fileName)
예제 #4
0
 def savedb(self, dbId):
     return imgdb.savedb(dbId, self.dbSpaces[dbId].fileName)