@home.route('/reupload_other_entity/<filename>/<node_id>', methods=['GET', 'POST'])
@login_required
def reupload_other_entity(filename, node_id):
    form = LoadOtherEntityForm()
    document = current_user.get_filename()
    uploads_folder = user_data.get_document_uploads_folder_name()
    eml_node = load_eml(filename=document)
    other_entity_name = ''
    oe_node = Node.get_node_instance(node_id)
    if oe_node:
        entity_name_node = oe_node.find_child(names.ENTITYNAME)
        if entity_name_node:
            other_entity_name = entity_name_node.content
            if (not other_entity_name):
                raise ValueError("Other entity's name not found")
    if ((request.method == 'POST') and (BTN_CANCEL in request.form)):
        url = url_for(PAGE_OTHER_ENTITY_SELECT, filename=filename)
        return redirect(url)
    if (request.method == 'POST'):
        return redirect(url_for(PAGE_LOAD_OTHER_ENTITY, node_id=node_id), code=307)
    help = get_helps(['data_table_reupload_full'])
    return render_template('reupload_other_entity.html', title='Re-upload Other Entity', form=form, name=other_entity_name, help=help)
@home.route('/reupload_other_entity/<filename>/<node_id>', methods=['GET', 'POST'])
@login_required
def reupload_other_entity(filename, node_id):
    form = LoadOtherEntityForm()
    document = current_user.get_filename()
    uploads_folder = user_data.get_document_uploads_folder_name()
    eml_node = load_eml(filename=document)
    other_entity_name = 
    oe_node = Node.get_node_instance(node_id)
    if oe_node:
        entity_name_node = oe_node.find_child(names.ENTITYNAME)
        if entity_name_node:
            other_entity_name = entity_name_node.content
            if (not other_entity_name):
                raise ValueError("Other entity's name not found")
    if ((request.method == 'POST') and (BTN_CANCEL in request.form)):
        url = url_for(PAGE_OTHER_ENTITY_SELECT, filename=filename)
        return redirect(url)
    if (request.method == 'POST'):
        return redirect(url_for(PAGE_LOAD_OTHER_ENTITY, node_id=node_id), code=307)
    help = get_helps(['data_table_reupload_full'])
    return render_template('reupload_other_entity.html', title='Re-upload Other Entity', form=form, name=other_entity_name, help=help)