pas.export_single_parliamentarian

Attributes

AttendenceType

TotalType

Classes

ParliamentarianEntry

TypeTotal

dict() -> new empty dictionary

Functions

generate_parliamentarian_settlement_pdf(→ bytes)

Generate PDF for parliamentarian settlement data.

get_parliamentarian_settlement_data(→ dict[str, ...)

Get settlement data for a specific parliamentarian.

Module Contents

class pas.export_single_parliamentarian.ParliamentarianEntry[source]
date: ParliamentarianEntry.date[source]
type_description: str[source]
calculated_value: decimal.Decimal[source]
additional_value: decimal.Decimal[source]
base_rate: decimal.Decimal[source]
attendance_type: AttendenceType[source]
pas.export_single_parliamentarian.AttendenceType[source]
class pas.export_single_parliamentarian.TypeTotal[source]

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

entries: list[ParliamentarianEntry][source]
total: decimal.Decimal[source]
pas.export_single_parliamentarian.TotalType[source]
pas.export_single_parliamentarian.generate_parliamentarian_settlement_pdf(settlement_run: onegov.pas.models.settlement_run.SettlementRun, request: onegov.town6.request.TownRequest, parliamentarian: onegov.pas.models.Parliamentarian) bytes[source]

Generate PDF for parliamentarian settlement data.

pas.export_single_parliamentarian.get_parliamentarian_settlement_data(settlement_run: onegov.pas.models.settlement_run.SettlementRun, request: onegov.town6.request.TownRequest, parliamentarian: onegov.pas.models.Parliamentarian) dict[str, list[ParliamentarianEntry]][source]

Get settlement data for a specific parliamentarian.