agency.utils

Attributes

_T

Functions

handle_empty_p_tags(→ markupsafe.Markup)

emails_for_new_ticket(→ Iterator[Address])

Returns an iterator with all the unique email addresses

ticket_groups(→ list[onegov.user.UserGroup])

get_html_paragraph_with_line_breaks(→ markupsafe.Markup)

filter_modified_or_created(→ Query[_T])

Module Contents

agency.utils._T[source]
agency.utils.handle_empty_p_tags(html: markupsafe.Markup) markupsafe.Markup[source]
agency.utils.emails_for_new_ticket(model: onegov.people.models.Agency | onegov.people.models.Person, request: onegov.agency.request.AgencyRequest) Iterator[Address][source]

Returns an iterator with all the unique email addresses that need to be notified for a new ticket of this type

agency.utils.ticket_groups(agency: onegov.people.models.Agency, groupids: list[str] | None) list[onegov.user.UserGroup][source]
agency.utils.get_html_paragraph_with_line_breaks(text: str | None) markupsafe.Markup[source]
agency.utils.filter_modified_or_created(query: Query[_T], relate: Literal['>', '<', '>=', '<=', '=='], comparison_property: datetime | str, collection_class: type[onegov.core.orm.mixins.TimestampMixin]) Query[_T][source]