org.views.survey_definition =========================== .. py:module:: org.views.survey_definition Attributes ---------- .. autoapisummary:: org.views.survey_definition.SurveyDefinitionT Functions --------- .. autoapisummary:: org.views.survey_definition.handle_new_survey_definition org.views.survey_definition.handle_defined_survey org.views.survey_definition.handle_edit_survey_definition org.views.survey_definition.view_survey_results org.views.survey_definition.delete_survey_definition org.views.survey_definition.delete_survey_entries Module Contents --------------- .. py:data:: SurveyDefinitionT .. py:function:: 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) -> onegov.core.types.RenderData | webob.Response .. py:function:: 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) -> onegov.core.types.RenderData | webob.Response 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. .. py:function:: 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) -> onegov.core.types.RenderData | webob.Response .. py:function:: 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 .. py:function:: delete_survey_definition(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest) -> None Deletes the survey along with all its submissions. .. py:function:: delete_survey_entries(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest) -> None Deletes all survey submissions.