org.views.survey_export

Classes

SurveySubmissionRow

Functions

handle_form_submissions_export(→ RenderData | Response)

subset_by_window(→ Query[SurveySubmission])

configure_subset(→ Query[SurveySubmissionRow])

run_export(→ tuple[Callable[[str], tuple[int, str]], ...)

Module Contents

class org.views.survey_export.SurveySubmissionRow[source]

Bases: NamedTuple

data: dict[str, Any][source]
submission_window_start: datetime.date[source]
submission_window_end: datetime.date[source]
org.views.survey_export.handle_form_submissions_export(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, form: onegov.org.forms.survey_export.SurveySubmissionsExport, layout: onegov.org.layout.SurveySubmissionLayout | None = None) RenderData | Response[source]
org.views.survey_export.subset_by_window(submissions: onegov.form.collection.SurveySubmissionCollection, window_ids: Collection[UUID]) Query[SurveySubmission][source]
org.views.survey_export.configure_subset(subset: Query[SurveySubmission]) Query[SurveySubmissionRow][source]
org.views.survey_export.run_export(subset: Query[SurveySubmissionRow], nested: bool, formatter: Callable[[object], Any]) tuple[Callable[[str], tuple[int, str]], Sequence[dict[str, Any]]][source]