agency.models.agency
Classes
A PDF containing all data of an agency and its suborganizations. |
|
An extended version of the standard agency from onegov.people. |
|
A proxy/alias for an agency. |
Module Contents
- class agency.models.agency.AgencyPdf[source]
Bases:
onegov.file.File
A PDF containing all data of an agency and its suborganizations.
- class agency.models.agency.ExtendedAgency(title: str, parent: Self | None = None, **kwargs: Any)[source]
Bases:
onegov.people.Agency
,onegov.org.models.extensions.AccessExtension
,onegov.org.models.extensions.PublicationExtension
An extended version of the standard agency from onegov.people.
- property es_public: bool[source]
Returns True if the model is available to be found by the public. If false, only editors/admins will see this object in the search results.
- parent: sqlalchemy.orm.relationship[ExtendedAgency | None][source]
- property pdf_file: depot.io.interfaces.StoredFile | None[source]
Returns the PDF content for the agency (and all its suborganizations).
- property portrait_html: markupsafe.Markup | None[source]
Returns the portrait that is saved as HTML from the redactor js plugin.
- proxy() AgencyProxy [source]
Returns a proxy object to this agency allowing alternative linking paths.