Ejemplo n.º 1
0
def work_view(ident):
    try:
        entity = api.get_work(ident)
        releases = api.get_work_releases(ident)
    except ApiException as ae:
        abort(ae.status)
    return render_template('work_view.html', work=entity, releases=releases)
Ejemplo n.º 2
0
def work_history(ident):
    try:
        entity = api.get_work(ident)
        history = api.get_work_history(ident)
    except ApiException as ae:
        abort(ae.status)
    return render_template('entity_history.html',
                           page_title=None,
                           entity_type="work",
                           entity=entity,
                           history=history)
Ejemplo n.º 3
0
def work_edit_view(ident):
    try:
        entity = api.get_work(ident)
    except ApiException as ae:
        abort(ae.status)
    return render_template('entity_edit.html')