def get(self):
jsondata = u""
try:
data_all = []
cursor = self._conn.cursor()
for r in cursor.execute("SELECT * FROM repo"):
data_all.append(json.loads(unicode(r[4])))
log.info(_("Retrieved all data from the repository `%s'.") %
self.filename)
except Exception as e:
log.error(_("Could not retreive from the repository `%s'") %
self.filename, detail=unicode(e))
return None
return data_all
评论列表
文章目录