External Calendars
This package contains all views related to external calendars
External Calendar Actions
External Calendar Form View
- class integreat_cms.cms.views.external_calendars.external_calendar_form_view.ExternalCalendarFormView(**kwargs)[source]
Bases:
TemplateView
Form view for new external calendars in a region.
- get(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse [source]
Render
ExternalCalendarForm
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponse
- post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse [source]
Submit
ExternalCalendarForm
and saveExternalCalendar
object- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponse
- show_import_messages(external_calendar_instance: ExternalCalendar, import_result: ImportResult) None [source]
This function shows the message after the import has been done
- Parameters:
external_calendar_instance (ExternalCalendar) – The instance of the external calendar
import_result (ImportResult) – The results of the import, either successes or errors
- Return type:
None
External Calendar List View
- class integreat_cms.cms.views.external_calendars.external_calendar_list_view.ExternalCalendarList(**kwargs)[source]
Bases:
TemplateView
View for external calendars in regions.