feriennet.collections.occasion_attendees

Module Contents

Classes

ContactInfo

dict() -> new empty dictionary

OccasionAttendee

OccasionAttendeeCollection

Abstract base class for generic types.

class feriennet.collections.occasion_attendees.ContactInfo[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)

emergency: str | None[source]
email: str[source]
place: str | None[source]
class feriennet.collections.occasion_attendees.OccasionAttendee[source]

Bases: NamedTuple

attendee: onegov.activity.Attendee[source]
info: ContactInfo[source]
group_code: str | None[source]
class feriennet.collections.occasion_attendees.OccasionAttendeeCollection(session: sqlalchemy.orm.Session, period: onegov.activity.models.Period, activity: onegov.activity.Activity, username: str | None = None)[source]

Bases: onegov.activity.OccasionCollection

Abstract base class for generic types.

A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:

class Mapping(Generic[KT, VT]):
    def __getitem__(self, key: KT) -> VT:
        ...
    # Etc.

This class can then be used as follows:

def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
    try:
        return mapping[key]
    except KeyError:
        return default
property period_id: uuid.UUID[source]
property activity_name: str[source]
for_period(period: onegov.activity.models.Period) typing_extensions.Self[source]
query() Query[Occasion][source]
occasions() dict[onegov.activity.Occasion, list[OccasionAttendee]][source]