chat.collections.chat
¶
Module Contents¶
Classes¶
Manages a list of chats. |
- class chat.collections.chat.ChatCollection(session: sqlalchemy.orm.Session, page: int = 0, state: str = 'active', group: str | None = None, owner: str = '*')[source]¶
Bases:
onegov.core.collection.GenericCollection
[onegov.chat.models.Chat
],onegov.core.collection.Pagination
[onegov.chat.models.Chat
]Manages a list of chats.
Use it like this:
from onegov.people import ChatCollection chats = ChatCollection(session)
- property name_of_view: str[source]¶
The name of the view to link to. If omitted, the the default view is looked up..
- subset() Query[Chat] [source]¶
Returns an SQLAlchemy query containing all records that should be considered for pagination.