Example #1
0
def get_admin_gallery(uuid=None):
    gallery = Gallery.blank()
    return json.dumps(gallery), 200, {'Content-Type': 'application/json'}
Example #2
0
def api_edit_gallery(uuid=None):
    if uuid:
        gallery = Gallery.get(uuid=uuid).to_dict(admin=True)
    else:
        gallery = Gallery.blank()
    return json.dumps(gallery), 200, {'Content-Type': 'application/json'}
Example #3
0
def get_admin_gallery(uuid=None):
    gallery = Gallery.blank()
    return json.dumps(gallery), 200, {'Content-Type': 'application/json'}
Example #4
0
def api_edit_gallery(uuid=None):
    if uuid:
        gallery = Gallery.get(uuid=uuid).to_dict(admin=True)
    else:
        gallery = Gallery.blank()
    return json.dumps(gallery), 200, {'Content-Type': 'application/json'}