ticket.model
¶
Module Contents¶
Classes¶
Defines a ticket. |
|
Defines a custom ticket permission. |
Attributes¶
- class ticket.model.Ticket[source]¶
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
,onegov.search.ORMSearchable
Defines a ticket.
- property extra_localized_text: str | None[source]¶
Maybe used by child-classes to return localized extra data that should be indexed as well.
- property es_suggestion: list[str][source]¶
Returns suggest-as-you-type value of the document. The field used for this property should also be indexed, or the suggestion will lead to nowhere.
If a single string is returned, the completion input equals the completion output. (My Title -> My Title)
If an array of strings is returned, all values are possible inputs and the first value is the output. (My Title/Title My -> My Title)
- property handler: onegov.ticket.handler.Handler[source]¶
Returns an instance of the handler associated with this ticket.
- redact_data() None [source]¶
Redact sensitive information from the ticket to protect personal data.
In scenarios where complete deletion is not feasible, this method serves as an alternative by masking sensitive information, like addresses, phone numbers in the form submission.
- create_snapshot(request: onegov.core.request.CoreRequest) None [source]¶
Takes the current handler and stores the output of the summary as a snapshot.
TODO: This doesn’t support multiple langauges at this point. The language of the user creating the snapshot will be what’s stored.
In the future we might change this by iterating over all supported languages and creating the summary for each language.