(request, domain, app, module, form, lang)
return core
Returns the core context that will be passed into vellum when it is
    initialized.
Returns the core context that will be passed into vellum when it is
    initialized.
Returns the core context that will be passed into vellum when it is initialized .
def _get_vellum_core_context(request, domain, app, module, form, lang):
    """
    Returns the core context that will be passed into vellum when it is
    initialized.
    """
    core = {
        'dataSourcesEndpoint': reverse('get_form_data_schema',
                                       kwargs={'domain': domain,
                                               'app_id': app.id,
                                               'form_unique_id': form.get_unique_id()}),
        'form': form.source,
        'formId': form.get_unique_id(),
        'formName': translate(form.name, app.langs[0], app.langs),
        'saveType': 'patch',
        'saveUrl': reverse('edit_form_attr',
                           args=[domain, app.id, form.get_unique_id(),
                                 'xform']),
        'patchUrl': reverse('patch_xform',
                            args=[domain, app.id, form.get_unique_id()]),
        'hasSubmissions': form_has_submissions(domain, app.id, form.get_unique_id()),
        'hasSubmissionsUrl': reverse(FormHasSubmissionsView.urlname,
                                     args=[domain, app.id, form.get_unique_id()]),
        'allowedDataNodeReferences': [
            "meta/deviceID",
            "meta/instanceID",
            "meta/username",
            "meta/userID",
            "meta/timeStart",
            "meta/timeEnd",
            "meta/location",
        ] + _get_core_context_scheduler_data_nodes(module, form),
        'activityUrl': reverse('ping'),
        'externalLinks': {
            'changeSubscription': reverse("domain_subscription_view",
                                          kwargs={'domain': domain}),
        },
        'invalidCaseProperties': ['name'],
    }
    core.update(_get_core_context_help_text_context(form))
    return core
def _get_vellum_core_context ( request , domain , app , module , form , lang ) : core = { 'dataSourcesEndpoint' : reverse ( 'get_form_data_schema' , kwargs = { 'domain' : domain , 'app_id' : app . id , 'form_unique_id' : form . get_unique_id ( ) } ) , 'form' : form . source , 'formId' : form . get_unique_id ( ) , 'formName' : translate ( form . name , app . langs [ 0 ] , app . langs ) , 'saveType' : 'patch' , 'saveUrl' : reverse ( 'edit_form_attr' , args = [ domain , app . id , form . get_unique_id ( ) , 'xform' ] ) , 'patchUrl' : reverse ( 'patch_xform' , args = [ domain , app . id , form . get_unique_id ( ) ] ) , 'hasSubmissions' : form_has_submissions ( domain , app . id , form . get_unique_id ( ) ) , 'hasSubmissionsUrl' : reverse ( FormHasSubmissionsView . urlname , args = [ domain , app . id , form . get_unique_id ( ) ] ) , 'allowedDataNodeReferences' : [ "meta/deviceID" , "meta/instanceID" , "meta/username" , "meta/userID" , "meta/timeStart" , "meta/timeEnd" , "meta/location" , ] + _get_core_context_scheduler_data_nodes ( module , form ) , 'activityUrl' : reverse ( 'ping' ) , 'externalLinks' : { 'changeSubscription' : reverse ( "domain_subscription_view" , kwargs = { 'domain' : domain } ) , } , 'invalidCaseProperties' : [ 'name' ] , } core . update ( _get_core_context_help_text_context ( form ) ) return core