コード例 #1
0
ファイル: views.py プロジェクト: ssundhar/Splunk
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
コード例 #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
コード例 #3
0
ファイル: views.py プロジェクト: code42/Splunk
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
コード例 #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
コード例 #5
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('splunk_wftoolkit:setup'))  # where to redirect after the completing the setup view
コード例 #6
0
ファイル: views.py プロジェクト: TPLink32/spnk1
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
コード例 #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
コード例 #8
0
ファイル: views.py プロジェクト: rude64/splunk-app-twitter
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
コード例 #9
0
ファイル: __init__.py プロジェクト: pombreda/r
def setup(request):
    return create_setup_view_context(
        request,
        SetupForm,
        reverse(app_id + ':home')
    )
コード例 #10
0
def setup(request):
    return create_setup_view_context(request, SetupForm,
                                     reverse(app_id + ':home'))
コード例 #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
コード例 #12
0
def setup(request):
    return create_setup_view_context(
        request,
        SetupForm,
        reverse('gomez_networks:home'))