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): """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
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
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
def setup(request): return create_setup_view_context( request, SetupForm, reverse(app_id + ':home') )
def setup(request): return create_setup_view_context(request, SetupForm, reverse(app_id + ':home'))
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
def setup(request): return create_setup_view_context( request, SetupForm, reverse('gomez_networks:home'))