org.views.occurrence

The onegov org collection of images uploaded to the site.

Classes

Filter

Functions

get_filters(→ list[Filter])

keyword_count(→ dict[str, dict[str, int]])

view_occurrences(→ onegov.core.types.RenderData)

View all occurrences of all events.

view_occurrence(→ onegov.core.types.RenderData)

View a single occurrence of an event.

handle_edit_event_filters(→ RenderData | BaseResponse)

ical_export_occurence(→ morepath.request.Response)

Returns the occurrence as ics.

ical_export_occurences(→ morepath.request.Response)

Returns the occurrences as ics.

export_occurrences(→ RenderData | BaseResponse)

Export the occurrences in various formats.

json_export_occurences(→ onegov.core.types.JSON_ro)

Returns the occurrences as JSON.

xml_export_all_occurrences(→ morepath.request.Response)

Returns events as xml.

import_occurrences(→ RenderData | BaseResponse)

Module Contents

class org.views.occurrence.Filter[source]

Bases: NamedTuple

title: str[source]
tags: tuple[onegov.core.elements.Link, Ellipsis][source]
org.views.occurrence.get_filters(request: onegov.org.request.OrgRequest, self: onegov.event.OccurrenceCollection, keyword_counts: Mapping[str, Mapping[str, int]], view_name: str = '') list[Filter][source]
org.views.occurrence.keyword_count(request: onegov.org.request.OrgRequest, collection: onegov.event.OccurrenceCollection) dict[str, dict[str, int]][source]
org.views.occurrence.view_occurrences(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.OccurrencesLayout | None = None) onegov.core.types.RenderData[source]

View all occurrences of all events.

org.views.occurrence.view_occurrence(self: onegov.event.Occurrence, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.OccurrenceLayout | None = None) onegov.core.types.RenderData[source]

View a single occurrence of an event.

org.views.occurrence.handle_edit_event_filters(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.event.EventConfigurationForm, layout: onegov.org.layout.OccurrencesLayout | None = None) RenderData | BaseResponse[source]
org.views.occurrence.ical_export_occurence(self: onegov.event.Occurrence, request: onegov.org.request.OrgRequest) morepath.request.Response[source]

Returns the occurrence as ics.

org.views.occurrence.ical_export_occurences(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest) morepath.request.Response[source]

Returns the occurrences as ics.

org.views.occurrence.export_occurrences(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.ExportForm, layout: onegov.org.layout.OccurrencesLayout | None = None) RenderData | BaseResponse[source]

Export the occurrences in various formats.

org.views.occurrence.json_export_occurences(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest) onegov.core.types.JSON_ro[source]

Returns the occurrences as JSON.

This is used for the senantis.dir.eventsportlet.

org.views.occurrence.xml_export_all_occurrences(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest) morepath.request.Response[source]

Returns events as xml. Url for xml view: ../events/xml

org.views.occurrence.import_occurrences(self: onegov.event.OccurrenceCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.EventImportForm, layout: onegov.org.layout.OccurrencesLayout | None = None) RenderData | BaseResponse[source]