people.collections.agencies

Classes

AgencyCollection

Manages a list of agencies.

Module Contents

class people.collections.agencies.AgencyCollection(session: sqlalchemy.orm.session.Session)[source]

Bases: onegov.core.orm.abstract.AdjacencyListCollection[onegov.people.models.Agency]

Manages a list of agencies.

Use it like this:

from onegov.people import AgencyCollection
agencies = AgencyCollection(session)
__listclass__[source]

The list class this collection handles. Must inherit from AdjacencyList.