示例#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
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
示例#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
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
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'))