Calendar¶
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.
-
routeByMonthAbbr
(request, year, monthAbbr)[source]¶ Route a request with a month abbreviation to the monthly view.
-
classmethod
can_create_at
(parent)[source]¶ Checks if this page type can be created as a subpage under a parent page instance.
-
_getEventsByDay
(request, firstDay, lastDay)[source]¶ Return the events in this site for the dates given, grouped by day.
-
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
-
_getEventsByDay
(request, firstDay, lastDay)[source]¶ Return my child events for the dates given, grouped by day.
-
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
-
_getEventsByDay
(request, firstDay, lastDay)[source]¶ Return all events for the dates given, grouped by day.
-