def load_file(guid):
file = None
try:
file = get_box_store().getNote(dev_token, guid, True, True, False, False)
except Exception, e:
return None
file_content = parse_file(file.content)
return {
'title': file.title,
'content': base64.b64decode(file_content + '=' * (-len(file_content) % 4)),
'created': date.fromtimestamp(file.created / 100).strftime('%d/%m/%Y')
}
评论列表
文章目录