form.models.submission
Attributes
Classes
Defines a submitted form of any kind in the database. |
|
Defines a submitted survey of any kind in the database. |
|
Defines a submitted form of any kind in the database. |
|
Defines a submitted form of any kind in the database. |
|
Module Contents
- class form.models.submission.FormSubmission[source]
Bases:
onegov.core.orm.Base,onegov.core.orm.mixins.TimestampMixin,onegov.pay.Payable,onegov.file.AssociatedFiles,onegov.form.extensions.ExtendableDefines a submitted form of any kind in the database.
- registration_window: sqlalchemy.orm.Mapped[onegov.form.models.FormRegistrationWindow | None][source]
- property form_class: type[onegov.form.Form][source]
The WTForms form class associated with this submission.
- classmethod _registration_state_expression() sqlalchemy.sql.ColumnElement[onegov.form.types.RegistrationState | None][source]
- process_payment(price: onegov.pay.Price | None, provider: onegov.pay.PaymentProvider[Any] | None = None, token: str | None = None) onegov.pay.Payment | onegov.pay.PaymentError | bool | None[source]
Takes a request, optionally with the provider and the token by the provider that can be used to charge the credit card and creates a payment record if necessary.
Returns True or a payment object if the payment was processed successfully. That is, if there is a payment or if there is no payment required the method returns truthy.
- class form.models.submission.SurveySubmission[source]
Bases:
onegov.core.orm.Base,onegov.core.orm.mixins.TimestampMixin,onegov.file.AssociatedFiles,onegov.form.extensions.ExtendableDefines a submitted survey of any kind in the database.
- class form.models.submission.PendingFormSubmission[source]
Bases:
FormSubmissionDefines a submitted form of any kind in the database.
- class form.models.submission.CompleteFormSubmission[source]
Bases:
FormSubmissionDefines a submitted form of any kind in the database.