app/views.py
def view_doc(doc_id):
    """
    In-depth view of a particular document. Displays PDF version of document,
    extracted entities, and other analytics.
    :param str doc_id: A specific document ID
    :return: rendered template for the current document
    """
    if is_owner_of_doc(doc_id):
        return render_template('doc-view.html', doc_id=doc_id)

    return abort(403)

    In-depth view of a particular document. Displays PDF version of document,
    extracted entities, and other analytics.
    :param str doc_id: A specific document ID
    :return: rendered template for the current document
    
In-depth view of a particular document. Displays PDF version of document,
extracted entities, and other analytics.
In - depth view of a particular document . Displays PDF version of document extracted entities and other analytics .
def view_doc(doc_id):
    if is_owner_of_doc(doc_id):
        return render_template('doc-view.html', doc_id=doc_id)
    return abort(403)
def view_doc ( doc_id ) : if is_owner_of_doc ( doc_id ) : return render_template ( 'doc-view.html' , doc_id = doc_id ) return abort ( 403 )
In-depth view of a particular document.
In - depth view of a particular document .
"""
    In-depth view of a particular document. Displays PDF version of document,
    extracted entities, and other analytics.
    :param str doc_id: A specific document ID
    :return: rendered template for the current document
    """
rendered template for the current document
rendered template for the current document
doc_id
A specific document ID
A specific document ID