def set(self, data):
try:
cursor = self._conn.cursor()
cursor.execute("DELETE FROM repo")
self._conn.commit()
except Exception as e:
log.error(_("Could not initialize the repository."),
detail=unicode(e))
return False
for d in data:
self.append_table(d)
return True
评论列表
文章目录