directory.models.directory_entry ================================ .. py:module:: directory.models.directory_entry Classes ------- .. autoapisummary:: directory.models.directory_entry.DirectoryEntry Module Contents --------------- .. py:class:: DirectoryEntry Bases: :py:obj:`onegov.core.orm.Base`, :py:obj:`onegov.core.orm.mixins.ContentMixin`, :py:obj:`onegov.gis.CoordinatesMixin`, :py:obj:`onegov.core.orm.mixins.TimestampMixin`, :py:obj:`onegov.search.SearchableContent`, :py:obj:`onegov.file.AssociatedFiles`, :py:obj:`onegov.core.orm.mixins.UTCPublicationMixin` A single entry of a directory. .. py:attribute:: __tablename__ :value: 'directory_entries' .. py:attribute:: es_properties Returns the type mapping of this model. Each property in the mapping will be read from the model instance. The returned object needs to be a dict or an object that provides a ``to_dict`` method. Internally, onegov.search stores differing languages in different indices. It does this automatically through langauge detection, or by manually specifying a language. Note that objects with multiple languages are not supported (each object is supposed to have exactly one language). Onegov.search will automatically insert the right analyzer for types like these. There's currently only limited support for properties here, namely objects and nested mappings do not work! This is going to be added in the future though. .. py:property:: es_public :type: bool 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. .. py:attribute:: id :type: sqlalchemy.Column[uuid.UUID] .. py:attribute:: name :type: sqlalchemy.Column[str] .. py:attribute:: directory_id :type: sqlalchemy.Column[onegov.core.orm.types.UUID] .. py:attribute:: type :type: sqlalchemy.Column[str] .. py:attribute:: order :type: sqlalchemy.Column[str] .. py:attribute:: title :type: sqlalchemy.Column[str] .. py:attribute:: lead :type: sqlalchemy.Column[str | None] .. py:attribute:: _keywords :type: sqlalchemy.Column[dict[str, str] | None] .. py:attribute:: __mapper_args__ .. py:attribute:: __table_args__ .. py:attribute:: directory :type: sqlalchemy.orm.relationship[directory.models.directory.Directory] .. py:property:: external_link :type: str | None .. py:property:: external_link_title :type: str | None .. py:property:: external_link_visible :type: bool | None .. py:property:: directory_name :type: str .. py:property:: keywords :type: set[str] .. py:property:: text :type: str .. py:property:: values :type: dict[str, Any]