pki.views.ca ============ .. py:module:: pki.views.ca .. autoapi-nested-parse:: CA views for the PKI application. Module Contents --------------- .. py:data:: logger .. py:class:: CaTableView Bases: :py:obj:`trustpoint.views.base.ContextDataMixin`, :py:obj:`django.views.generic.ListView`\ [\ :py:obj:`pki.models.CaModel`\ ] Table view for all CAs with hierarchy information. .. py:attribute:: model .. py:attribute:: template_name :value: 'pki/cas/cas.html' .. py:attribute:: context_object_name :value: 'cas' .. py:attribute:: paginate_by :value: None .. py:attribute:: context_page_category :value: 'pki' .. py:attribute:: context_page_name :value: 'cas' .. py:method:: get_queryset() Return all CA models with parent relationships and domains prefetched, ordered by hierarchy. .. py:method:: get_context_data(**kwargs) Add hierarchy information to each CA and apply hierarchical ordering. .. py:class:: CaBulkDeleteConfirmView Bases: :py:obj:`trustpoint.views.base.BulkDeleteView` View to confirm the deletion of multiple CAs. .. py:attribute:: model .. py:attribute:: success_url .. py:attribute:: ignore_url .. py:attribute:: template_name :value: 'pki/cas/confirm_delete.html' .. py:attribute:: context_object_name :value: 'cas' .. py:method:: get(request, *args, **kwargs) Handle GET requests. .. py:method:: form_valid(form) Delete the selected CAs on valid form, handling hierarchical dependencies.