org.views.form_export

Classes

FormSubmissionRow

Functions

handle_form_submissions_export(→ RenderData | Response)

subset_by_date(→ Query[FormSubmission])

subset_by_window(→ Query[FormSubmission])

configure_subset(→ Query[FormSubmissionRow])

run_export(→ tuple[Callable[[str], tuple[int, 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) RenderData | 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) Query[FormSubmission][source]
org.views.form_export.subset_by_window(submissions: onegov.form.FormSubmissionCollection, window_ids: Collection[UUID]) Query[FormSubmission][source]
org.views.form_export.configure_subset(subset: Query[FormSubmission]) Query[FormSubmissionRow][source]
org.views.form_export.run_export(subset: Query[FormSubmissionRow], nested: bool, formatter: Callable[[object], Any]) tuple[Callable[[str], tuple[int, str]], Sequence[dict[str, Any]]][source]