eucrim.event package

Submodules

eucrim.event.apps module

class eucrim.event.apps.EventConfig(app_name, app_module)[source]

Bases: AppConfig

name = 'eucrim.event'

eucrim.event.models module

class eucrim.event.models.EventIndexPage(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of, page_ptr)[source]

Bases: HideShowInMenusField, RoutablePageMixin, Page

exception DoesNotExist

Bases: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: NotUpdated

ajax_template = None
index_entries

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

is_creatable = True
max_count = 1
page_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

page_ptr_id
parent_page_types = ['core.HomePage']
property past_events
past_events_route(request, *args, **kwargs)[source]

View function for the past events page

show_in_menus = True
subpage_types = ['event.EventPage']
template = 'event/event_index_page.html'
today = datetime.date(2026, 3, 22)
property upcoming_events
upcoming_events_route(request, *args, **kwargs)[source]

View function for the upcoming events page

class eucrim.event.models.EventPage(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of, page_ptr, language, subtitle, body, excerpt, event_organizer_name, event_organizer_www, event_external_url, event_external_url_linktext, event_venue, event_venue_city, event_venue_country, event_contact_name, event_contact_mail, event_contact_www, event_date_from, event_date_to, event_time_from, event_time_to, canceled, is_online_event)[source]

Bases: HideShowInMenusField, Page

exception DoesNotExist

Bases: DoesNotExist

ENGLISH = 'EN'
FRENCH = 'FR'
GERMAN = 'GE'
LANGUAGE_CHOICES = (('GE', 'German'), ('EN', 'English'), ('FR', 'French'))
exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

exception NotUpdated

Bases: NotUpdated

ajax_template = None
body

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

canceled

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

content_panels = [<wagtail.models.panels.PanelPlaceholder object>, <FieldPanel 'subtitle' with model=None>, <FieldPanel 'body' with model=None>, <FieldPanel 'excerpt' with model=None>, <MultiFieldPanel with model=None>, <MultiFieldPanel with model=None>]
edit_handler = <TabbedInterface with model=None>
event_contact_mail

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_contact_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_contact_www

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_date_from

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_date_to

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_external_url

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_external_url_linktext

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property event_index_page
event_organizer_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_organizer_www

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_time_from

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_time_to

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_venue

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_venue_city

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event_venue_country

A descriptor for country fields on a model instance. Returns a Country when accessed so you can do things like:

>>> from people import Person
>>> person = Person.object.get(name='Chris')

>>> person.country.name
'New Zealand'

>>> person.country.flag
'/static/flags/nz.gif'
excerpt

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property feed_description
get_absolute_url()[source]
property get_event_contact_html
property get_event_location_googlemaps_url
property get_event_venue_city_country
get_event_venue_country_display(*, field=<django_countries.fields.CountryField: event_venue_country>)
get_language_display(*, field=<django.db.models.fields.CharField: language>)
property get_obj_og_description
property has_been_modified
index_entries

Accessor to the related objects manager on the one-to-many relation created by GenericRelation.

In the example:

class Post(Model):
    comments = GenericRelation(Comment)

post.comments is a ReverseGenericManyToOneDescriptor instance.

is_creatable = True
is_online_event

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

language

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

page_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

page_ptr_id
parent_page_types = ['event.EventIndexPage']
search_fields = [<SearchField: title>, <AutocompleteField: title>, <FilterField: title>, <FilterField: id>, <FilterField: live>, <FilterField: owner>, <FilterField: content_type>, <FilterField: path>, <FilterField: depth>, <FilterField: locked>, <FilterField: show_in_menus>, <FilterField: first_published_at>, <FilterField: last_published_at>, <FilterField: latest_revision_created_at>, <FilterField: locale>, <FilterField: translation_key>, <AutocompleteField: subtitle>, <AutocompleteField: body>, <AutocompleteField: excerpt>, <AutocompleteField: search_description>]
serve(request)[source]
show_in_menus = False
subpage_types = []
subtitle

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

template = 'event/event_page.html'

eucrim.event.utils module

eucrim.event.utils.export_event(event, response_format='ical')[source]

eucrim.event.wagtail_hooks module

eucrim.event.wagtail_hooks.register_viewset()[source]

Module contents