Exemplo n.º 1
0
def setup(request):
    """Render the setup page, and process data when it's validating/saving new content"""
    service = request.service
    SetupForm.service = service
    result = create_setup_view_context(request, SetupForm,
                                       reverse('code42:setup'))

    return result
Exemplo n.º 2
0
def setup(request):
    result = create_setup_view_context(request, SetupForm,
                                       reverse('SplunkConf2014Example:home'))

    service = request.service
    app_name = service.namespace['app']
    service.apps[app_name].post('_reload')

    return result
Exemplo n.º 3
0
def setup(request):
    """Render the setup page, and process data when it's validating/saving new content"""
    service = request.service
    SetupForm.service = service
    result = create_setup_view_context(
        request,
        SetupForm,
        reverse('code42:setup'))

    return result
Exemplo n.º 4
0
def setup(request):
    result = create_setup_view_context(
        request,
        SetupForm,
        reverse('SplunkConf2014Example:home'))
    
    service = request.service
    app_name = service.namespace['app']
    service.apps[app_name].post('_reload')
    
    return result
def setup(request):
    # Renders the setup view, passing the following variables to the template:
    #   * form -- Can be rendered with {{ form.as_p }}.
    #   * configured -- Whether the app has already been configured.
    #                   If false, then the existing configuration is being edited.
    return create_setup_view_context(
        request,
        SetupForm,                  # the form class to use
        # NOTE: Most apps should redirect to the home view 'splunk_wftoolkit:home'
        #       instead of back to the setup page.
        reverse('splunk_wftoolkit:setup'))  # where to redirect after the completing the setup view
Exemplo n.º 6
0
def setup(request):
    # Renders the setup view, passing the following variables to the template:
    #   * form -- Can be rendered with {{ form.as_p }}.
    #   * configured -- Whether the app has already been configured.
    #                   If false, then the existing configuration is being edited.
    return create_setup_view_context(
        request,
        SetupForm,                  # the form class to use
        # NOTE: Most apps should redirect to the home view 'splunk_wftoolkit:home'
        #       instead of back to the setup page.
        reverse('cisco-app-Nexus-9k:setup'))  # where to redirect after the completing the setup view
Exemplo n.º 7
0
def setup(request):
    result = create_setup_view_context(request, SetupForm,
                                       reverse('twitter2:home'))

    # HACK: Workaround DVPL-4647 (Splunk 6.1 and below):
    #       Refresh current app's state so that non-framework views
    #       observe when the app becomes configured.
    service = request.service
    app_name = service.namespace['app']
    service.apps[app_name].post('_reload')

    return result
Exemplo n.º 8
0
def setup(request):
    result = create_setup_view_context(
        request,
        SetupForm,
        reverse('twitter2:home'))
    
    # HACK: Workaround DVPL-4647 (Splunk 6.1 and below):
    #       Refresh current app's state so that non-framework views
    #       observe when the app becomes configured.
    service = request.service
    app_name = service.namespace['app']
    service.apps[app_name].post('_reload')
    
    return result
Exemplo n.º 9
0
def setup(request):
    return create_setup_view_context(
        request,
        SetupForm,
        reverse(app_id + ':home')
    )
Exemplo n.º 10
0
def setup(request):
    return create_setup_view_context(request, SetupForm,
                                     reverse(app_id + ':home'))
Exemplo n.º 11
0
def setup(request):
    return create_setup_view_context(
        request,
        SetupForm,  # The form class to use
        reverse('Splunk_Dimensioning:page1')
    )  # Where to redirect the user after completing setup
Exemplo n.º 12
0
def setup(request):
    return create_setup_view_context(
        request,
        SetupForm,
        reverse('gomez_networks:home'))