org.views.form_export

Classes

FormSubmissionRow

Functions

handle_form_submissions_export(...)

subset_by_date(...)

subset_by_window(...)

configure_subset(→ sqlalchemy.orm.Query[FormSubmissionRow])

run_export(→ tuple[collections.abc.Callable[[str], ...)

Module Contents

class org.views.form_export.FormSubmissionRow[source]

Bases: NamedTuple

title: str[source]
email: str | None[source]
received: datetime.datetime[source]
payment_method: onegov.pay.types.PaymentMethod | None[source]
data: dict[str, Any][source]
ticket_number: str[source]
registration_state: onegov.form.types.RegistrationState | None[source]
registration_window_start: datetime.date[source]
registration_window_end: datetime.date[source]
org.views.form_export.handle_form_submissions_export(self: onegov.form.FormDefinition, request: onegov.org.request.OrgRequest, form: onegov.org.forms.FormSubmissionsExport, layout: onegov.org.layout.FormSubmissionLayout | None = None) onegov.core.types.RenderData | webob.Response[source]
org.views.form_export.subset_by_date(submissions: onegov.form.FormSubmissionCollection, start: sedate.types.DateLike, end: sedate.types.DateLike, timezone: sedate.types.TzInfoOrName) sqlalchemy.orm.Query[onegov.form.FormSubmission][source]
org.views.form_export.subset_by_window(submissions: onegov.form.FormSubmissionCollection, window_ids: collections.abc.Collection[onegov.core.orm.types.UUID]) sqlalchemy.orm.Query[onegov.form.FormSubmission][source]
org.views.form_export.configure_subset(subset: sqlalchemy.orm.Query[onegov.form.FormSubmission]) sqlalchemy.orm.Query[FormSubmissionRow][source]
org.views.form_export.run_export(subset: sqlalchemy.orm.Query[FormSubmissionRow], nested: bool, formatter: collections.abc.Callable[[object], Any]) tuple[collections.abc.Callable[[str], tuple[int, str]], collections.abc.Sequence[dict[str, Any]]][source]