feriennet.models.calendar

Classes

AttendeeCalendarRow

Calendar

A base for all calendars that return icalendar renderings.

AttendeeCalendar

Renders all confirmed activites of the given attendee.

Module Contents

class feriennet.models.calendar.AttendeeCalendarRow[source]

Bases: NamedTuple

uid: str[source]
period: str[source]
confirmed: bool[source]
title: str[source]
name: str[source]
lat: str | None[source]
lon: str | None[source]
start: datetime.datetime[source]
end: datetime.datetime[source]
meeting_point: str | None[source]
note: str | None[source]
cancelled: bool[source]
attendee_id: uuid.UUID[source]
state: onegov.activity.models.booking.BookingState[source]
booking_id: uuid.UUID[source]
class feriennet.models.calendar.Calendar[source]

A base for all calendars that return icalendar renderings.

name: ClassVar[str][source]
calendars: ClassVar[dict[str, type[Calendar]]][source]
classmethod __init_subclass__(name: str, **kwargs: Any) None[source]
classmethod from_token(session: sqlalchemy.orm.Session, token: str) Calendar | None[source]
Abstractmethod:

classmethod from_name_and_token(session: sqlalchemy.orm.Session, name: str, token: str) Calendar | None[source]
abstract calendar(request: onegov.feriennet.request.FeriennetRequest) bytes[source]
new() icalendar.Calendar[source]
class feriennet.models.calendar.AttendeeCalendar(session: sqlalchemy.orm.Session, attendee: onegov.activity.Attendee)[source]

Bases: Calendar

Renders all confirmed activites of the given attendee.

session[source]
attendee[source]
property attendee_calendar: sqlalchemy.sql.selectable.Alias[source]
property attendee_id: str[source]
property token: str[source]
classmethod from_token(session: sqlalchemy.orm.Session, token: str) Self | None[source]
calendar(request: onegov.feriennet.request.FeriennetRequest) bytes[source]
events(request: onegov.feriennet.request.FeriennetRequest) Iterator[icalendar.Event][source]