org.views.survey_export

Classes

SurveySubmissionRow

Functions

handle_form_submissions_export(...)

subset_by_window(...)

configure_subset(...)

run_export(→ tuple[collections.abc.Callable[[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) onegov.core.types.RenderData | webob.Response[source]
org.views.survey_export.subset_by_window(submissions: onegov.form.collection.SurveySubmissionCollection, window_ids: collections.abc.Collection[onegov.core.orm.types.UUID]) sqlalchemy.orm.Query[onegov.form.models.submission.SurveySubmission][source]
org.views.survey_export.configure_subset(subset: sqlalchemy.orm.Query[onegov.form.models.submission.SurveySubmission]) sqlalchemy.orm.Query[SurveySubmissionRow][source]
org.views.survey_export.run_export(subset: sqlalchemy.orm.Query[SurveySubmissionRow], nested: bool, formatter: collections.abc.Callable[[object], Any]) tuple[collections.abc.Callable[[str], tuple[int, str]], collections.abc.Sequence[dict[str, Any]]][source]