people.models.person
Classes
A person. |
Module Contents
- class people.models.person.Person[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
,onegov.search.ORMSearchable
,onegov.core.orm.mixins.UTCPublicationMixin
A person.
- es_public = True[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.
- property es_suggestion: tuple[str, Ellipsis][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 spoken_title: str[source]
Returns the Western-ordered name. Includes the academic title if available.
- memberships: sqlalchemy.orm.relationship[onegov.core.types.AppenderQuery[onegov.people.models.AgencyMembership]][source]
- vcard_object(exclude: collections.abc.Collection[str] | None = None, include_memberships: bool = True) vobject.base.Component [source]
Returns the person as vCard (3.0) object.
Allows to specify the included attributes, provides a reasonable default if none are specified. Always includes the first and last name.