people.models.agency
¶
Module Contents¶
Classes¶
A general file (image, document, pdf, etc), referenced in the database. |
|
An agency (organization) containing people through memberships. |
Attributes¶
- class people.models.agency.AgencyOrganigram[source]¶
Bases:
onegov.file.File
A general file (image, document, pdf, etc), referenced in the database.
Thanks to the use of Depot files can be seemingly stored in the database (with transaction guarantees), without actually storing it in the database.
- class people.models.agency.Agency(title: str, parent: Self | None = None, **kwargs: Any)[source]¶
Bases:
onegov.core.orm.abstract.AdjacencyList
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
,onegov.search.ORMSearchable
,onegov.core.orm.mixins.UTCPublicationMixin
,onegov.gis.CoordinatesMixin
An agency (organization) containing people through memberships.
- property organigram_file: StoredFile | None[source]¶
Returns the file-like content of the organigram.
- add_person(person_id: uuid.UUID, title: str, *, order_within_agency: int = 2**16, **kwargs: Any) None [source]¶
Appends a person to the agency with the given title.