agency.utils

Module Contents

Functions

handle_empty_p_tags(→ str)

emails_for_new_ticket(→ Iterator[Address])

Returns an iterator with all the unique email addresses

get_html_paragraph_with_line_breaks(→ markupsafe.Markup)

filter_modified_or_created(→ Query[_T])

Attributes

_T

agency.utils._T[source]
agency.utils.handle_empty_p_tags(html: str) str[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.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]