(request, domain)
return HttpResponseRedirect(base.ImportCases.get_url(domain))
Step three of three.

    This page is submitted with the list of column to
    case property mappings for this upload.

    The config variable is an ImporterConfig object that
    has everything gathered from previous steps, with the
    addition of all the field data. See that class for
    more information.
Step three of three.
Step three of three .
def excel_commit(request, domain):
    """
    Step three of three.

    This page is submitted with the list of column to
    case property mappings for this upload.

    The config variable is an ImporterConfig object that
    has everything gathered from previous steps, with the
    addition of all the field data. See that class for
    more information.
    """
    config = importer_util.ImporterConfig.from_request(request)

    excel_id = request.session.get(EXCEL_SESSION_ID)

    case_upload = CaseUpload.get(excel_id)
    try:
        case_upload.check_file()
    except ImporterError as e:
        return render_error(request, domain, get_importer_error_message(e))

    case_upload.trigger_upload(domain, config)

    request.session.pop(EXCEL_SESSION_ID, None)

    return HttpResponseRedirect(base.ImportCases.get_url(domain))
def excel_commit ( request , domain ) : config = importer_util . ImporterConfig . from_request ( request ) excel_id = request . session . get ( EXCEL_SESSION_ID ) case_upload = CaseUpload . get ( excel_id ) try : case_upload . check_file ( ) except ImporterError as e : return render_error ( request , domain , get_importer_error_message ( e ) ) case_upload . trigger_upload ( domain , config ) request . session . pop ( EXCEL_SESSION_ID , None ) return HttpResponseRedirect ( base . ImportCases . get_url ( domain ) )