org.views.survey_definition

Attributes

SurveyDefinitionT

Functions

handle_new_survey_definition(→ RenderData | Response)

handle_defined_survey(→ RenderData | Response)

Renders the empty survey and takes input, even if it's not valid,

handle_edit_survey_definition(→ RenderData | Response)

view_survey_results(→ onegov.core.types.RenderData)

delete_survey_definition(→ None)

Deletes the survey along with all its submissions.

delete_survey_entries(→ None)

Deletes all survey submissions.

Module Contents

org.views.survey_definition.SurveyDefinitionT[source]
org.views.survey_definition.handle_new_survey_definition(self: onegov.form.collection.SurveyCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.form_definition.SurveyDefinitionForm, layout: onegov.org.layout.FormEditorLayout | None = None) RenderData | Response[source]
org.views.survey_definition.handle_defined_survey(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.SurveySubmissionLayout | None = None) RenderData | Response[source]

Renders the empty survey and takes input, even if it’s not valid, stores it as a pending submission and redirects the user to the view that handles pending submissions.

org.views.survey_definition.handle_edit_survey_definition(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, form: onegov.org.forms.form_definition.SurveyDefinitionForm, layout: onegov.org.layout.FormEditorLayout | None = None) RenderData | Response[source]
org.views.survey_definition.view_survey_results(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.SurveySubmissionLayout | None = None) onegov.core.types.RenderData[source]
org.views.survey_definition.delete_survey_definition(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest) None[source]

Deletes the survey along with all its submissions.

org.views.survey_definition.delete_survey_entries(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest) None[source]

Deletes all survey submissions.