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
def savedb(self, dbId): return imgdb.savedb(dbId, self.dbSpaces[dbId].fileName)