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

extra_context = None[source]
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

__init__() None[source]

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

Return type:

None

classmethod as_view(**initkwargs)[source]

Main entry point for a request-response process.

content_type = None[source]
dispatch(request, *args, **kwargs)[source]
extra_context = None[source]
get(request, *args, **kwargs)[source]
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_template_names()[source]

Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.

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]]

http_method_names = ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace'][source]
http_method_not_allowed(request, *args, **kwargs)[source]
only_latest_release = False[source]

Whether only the latest release notes should be included

options(request, *args, **kwargs)[source]

Handle responding to requests for the OPTIONS HTTP verb.

render_to_response(context, **response_kwargs)[source]

Return a response, using the response_class for this view, with a template rendered with the given context.

Pass response_kwargs to the constructor of the response class.

response_class[source]

alias of TemplateResponse

setup(request, *args, **kwargs)[source]

Initialize attributes shared by all view methods.

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

The template to render (see TemplateResponseMixin)

view_is_async = False[source]