pay.collections.payable
Attributes
Classes
Provides a collection of all payable models. This collection is |
Module Contents
- class pay.collections.payable.PayableCollection(session: sqlalchemy.orm.Session, cls: type[_P], page: int = 0)[source]
- class pay.collections.payable.PayableCollection(session: sqlalchemy.orm.Session, cls: Literal['*'] = '*', page: int = 0)
Bases:
onegov.core.collection.Pagination
[_P
]Provides a collection of all payable models. This collection is meant to be read-only, so there’s no add/delete methods.
To add payments to payable models just use the payment property and directly assign a new or an existing payment.
- transform_batch_query(query: QueryChain[_P]) QueryChain[_P] [source]
Allows subclasses to transform the given query before it is used to retrieve the batch. This is a good place to add additional loading that should only apply to the batch (say joining other values to the batch which are then not loaded by the whole query).
- query() QueryChain[_P] [source]
- __eq__(other: object) bool [source]
Returns True if the current and the other Pagination instance are equal. Used to find the current page in a list of pages.
- subset() QueryChain[_P] [source]
Returns an SQLAlchemy query containing all records that should be considered for pagination.