Release Notes

Release Notes Context Mixin

class integreat_cms.cms.views.release_notes.release_notes_context_mixin.ReleaseNotesContextMixin[source]

Bases: ContextMixin

This mixin provides the release notes context (see ContextMixin)

__init__() None[source]
Return type:

None

get_context_data(**kwargs: Any) dict[str, Any][source]

Extend context by release notes

Parameters:

**kwargs (Any) – The supplied keyword arguments

Returns:

The context dictionary

Return type:

dict[str, Any]

get_entries(version: Path | PosixPath) dict[str, str][source]

Get all entries of one version

Returns:

The entry dict

Parameters:

version (Path | PosixPath) –

Return type:

dict[str, str]

get_release_notes() dict[str, dict[str, dict[str, str]]][source]

Get all release notes

Returns:

The release note dict

Return type:

dict[str, dict[str, dict[str, str]]]

get_versions(year: Path | PosixPath) dict[str, dict[str, str]][source]

Get all versions of one year

Returns:

The version dict

Parameters:

year (Path | PosixPath) –

Return type:

dict[str, dict[str, str]]

only_latest_release = False[source]

Whether only the latest release notes should be included

Release Notes View

class integreat_cms.cms.views.release_notes.release_notes_view.ReleaseNotesView[source]

Bases: TemplateView, ReleaseNotesContextMixin

View for retrieving the release notes

template_name = 'release_notes/release_notes.html'[source]

The template to render (see TemplateResponseMixin)