Example #1
0
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})
Example #2
0
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})