def storymap_get(user, id): """Get storymap""" try: key_name = storage.key_name(user['uid'], id, 'draft.json') data = storage.load_json(key_name) return jsonify({'meta': user['storymaps'][id], 'data': data}) except storage.StorageException, e: traceback.print_exc() return jsonify({'error': str(e), 'error_detail': e.detail})
def storymap_get(user, id): """Get storymap""" try: key_name = storage.key_name(user["uid"], id, "draft.json") data = storage.load_json(key_name) return jsonify({"meta": user["storymaps"][id], "data": data}) except storage.StorageException, e: traceback.print_exc() return jsonify({"error": str(e), "error_detail": e.detail})