Calendar

CalendarPage

Inheritance diagram of CalendarPage
class ls.joyous.models.CalendarPage(*args, **kwargs)[source]

Bases: wagtail.contrib.routable_page.models.RoutablePageMixin, wagtail.core.models.Page

CalendarPage displays all the events which are in the same site.

holidays

The holidays to be displayed by this calendar.

intro

Introductory text.

view_choices

What types of calendar views the user can select.

default_view

The default calendar view to display to the user.

routeDefault(request, year=None)[source]

Route a request to the default calendar view.

routeByMonthAbbr(request, year, monthAbbr)[source]

Route a request with a month abbreviation to the monthly view.

serveMonth(request, year=None, month=None)[source]

Monthly calendar view.

serveWeek(request, year=None, week=None)[source]

Weekly calendar view.

serveDay(request, year=None, month=None, dom=None)[source]

The events of the day list view.

serveUpcoming(request)[source]

Upcoming events list view.

servePast(request)[source]

Past events list view.

serveMiniMonth(request, year=None, month=None)[source]

Serve data for the MiniMonth template tag.

classmethod can_create_at(parent)[source]

Checks if this page type can be created as a subpage under a parent page instance.

classmethod _allowAnotherAt(parent)[source]

You can only create one of these pages per site.

classmethod peers()[source]

Return others of the same concrete type.

_getEventsOnDay(request, day)[source]

Return all the events in this site for a given day.

_getEventsByDay(request, firstDay, lastDay)[source]

Return the events in this site for the dates given, grouped by day.

_getEventsByWeek(request, year, month)[source]

Return the events in this site for the given month grouped by week.

_getUpcomingEvents(request)[source]

Return the upcoming events in this site.

_getPastEvents(request)[source]

Return the past events in this site.

_getEventFromUid(request, uid)[source]

Try and find an event with the given UID in this site.

_getAllEvents(request)[source]

Return all the events in this site.

SpecificCalendarPage

Inheritance diagram of SpecificCalendarPage
class ls.joyous.models.SpecificCalendarPage(*args, **kwargs)[source]

Bases: ls.joyous.utils.mixins.ProxyPageMixin, ls.joyous.models.calendar.CalendarPage

SpecificCalendarPage displays only the events which are its children

classmethod _allowAnotherAt(parent)[source]

Don’t limit creation.

_getEventsByDay(request, firstDay, lastDay)[source]

Return my child events for the dates given, grouped by day.

_getEventsByWeek(request, year, month)[source]

Return my child events for the given month grouped by week.

_getUpcomingEvents(request)[source]

Return my upcoming child events.

_getPastEvents(request)[source]

Return my past child events.

_getEventFromUid(request, uid)[source]

Try and find a child event with the given UID.

_getAllEvents(request)[source]

Return all my child events.

GeneralCalendarPage

Inheritance diagram of GeneralCalendarPage
class ls.joyous.models.GeneralCalendarPage(*args, **kwargs)[source]

Bases: ls.joyous.utils.mixins.ProxyPageMixin, ls.joyous.models.calendar.CalendarPage

GeneralCalendarPage displays all the events no matter where they are

classmethod _allowAnotherAt(parent)[source]

You can only create one of these pages.

_getEventsByDay(request, firstDay, lastDay)[source]

Return all events for the dates given, grouped by day.

_getEventsByWeek(request, year, month)[source]

Return all events for the given month grouped by week.

_getUpcomingEvents(request)[source]

Return all the upcoming events.

_getPastEvents(request)[source]

Return all the past events.

_getEventFromUid(request, uid)[source]

Try and find an event with the given UID.

_getAllEvents(request)[source]

Return all the events.