org.models.form
Classes
Defines a form stored in the database. |
|
Defines a form stored in the database. |
Functions
|
CustomFormDefinition's are normally linked to a ticket. |
Module Contents
- class org.models.form.BuiltinFormDefinition[source]
Bases:
onegov.form.models.FormDefinition,onegov.org.models.extensions.AccessExtension,onegov.org.models.extensions.ContactExtension,onegov.org.models.extensions.PersonLinkExtension,onegov.org.models.extensions.CoordinatesExtension,onegov.search.SearchableContent,onegov.org.models.extensions.HoneyPotExtension,onegov.org.models.extensions.GeneralFileLinkExtensionDefines a form stored in the database.
- fts_type_title[source]
Returns the display name for this type of document or a callable which accepts the current request as a single positional argument and returns the display name.
- class org.models.form.CustomFormDefinition[source]
Bases:
onegov.form.models.FormDefinition,onegov.org.models.extensions.AccessExtension,onegov.org.models.extensions.ContactExtension,onegov.org.models.extensions.PersonLinkExtension,onegov.org.models.extensions.CoordinatesExtension,onegov.search.SearchableContent,onegov.org.models.extensions.HoneyPotExtension,onegov.org.models.extensions.GeneralFileLinkExtensionDefines a form stored in the database.
- fts_type_title[source]
Returns the display name for this type of document or a callable which accepts the current request as a single positional argument and returns the display name.
- org.models.form.submission_deletable(submission: onegov.form.models.FormSubmission, session: sqlalchemy.orm.Session, payment_blocks: bool = True) onegov.ticket.Ticket | bool[source]
CustomFormDefinition’s are normally linked to a ticket.
Submissions without registration window do not require a decision. The ticket state decides, whether the form definition can be deleted to provide some safeguard.
With registration window, we can check if the submission is decided and can close the ticket even if it is still pending.