trustpoint.page_context

This module contains page category objects providing the corresponding subcategories.

Attributes

Classes

PageContextMixin

Mixin which adds data to the context for the devices application.

Module Contents

trustpoint.page_context.DEVICES_PAGE_CATEGORY = 'devices'[source]
trustpoint.page_context.DEVICES_PAGE_DEVICES_SUBCATEGORY = 'devices'[source]
trustpoint.page_context.DEVICES_PAGE_OPC_UA_SUBCATEGORY = 'opc_ua_gds'[source]
trustpoint.page_context.DEVICES_PAGE_OPC_UA_GDS_PUSH_SUBCATEGORY = 'opc_ua_gds_push'[source]
trustpoint.page_context.PKI_PAGE_CATEGORY = 'pki'[source]
trustpoint.page_context.PKI_PAGE_CERTIFICATES_SUBCATEGORY = 'certificates'[source]
trustpoint.page_context.PKI_PAGE_DOMAIN_SUBCATEGORY = 'domains'[source]
trustpoint.page_context.PKI_PAGE_ISSUING_CAS_SUBCATEGORY = 'issuing_cas'[source]
trustpoint.page_context.PKI_PAGE_TRUSTSTORES_SUBCATEGORY = 'truststores'[source]
class trustpoint.page_context.PageContextMixin[source]

Mixin which adds data to the context for the devices application.

page_category: str | None = None[source]
page_name: str | None = None[source]
get_context_data(**kwargs)[source]

Adds the page category and page_name for the device pages.

Parameters:

kwargs (Any) – The keyword arguments are passed to super().get_context_data() if it exists. Otherwise, kwargs is returned with the added page_category.

Returns:

The context data including the page_category information.

Return type:

dict[str, Any]