pki.views.caΒΆ
CA views for the PKI application.
AttributesΒΆ
ClassesΒΆ
Table view for all CAs with hierarchy information. |
|
View to confirm the deletion of multiple CAs. |
Module ContentsΒΆ
- class pki.views.ca.CaTableView[source]ΒΆ
Bases:
trustpoint.views.base.ContextDataMixin,django.views.generic.ListView[pki.models.CaModel]Table view for all CAs with hierarchy information.
- get_queryset()[source]ΒΆ
Return all CA models with parent relationships and domains prefetched, ordered by hierarchy.
- Return type:
django.db.models.QuerySet[pki.models.CaModel]
- get_context_data(**kwargs)[source]ΒΆ
Add hierarchy information to each CA and apply hierarchical ordering.
- Parameters:
kwargs (Any)
- Return type:
dict[str, Any]
- _hierarchical_sort(cas)[source]ΒΆ
Sort CAs hierarchically: roots first, then their children recursively.
- Parameters:
cas (list[pki.models.CaModel]) β List of CA models to sort.
- Returns:
Hierarchically sorted list of CAs.
- Return type:
list[pki.models.CaModel]
- class pki.views.ca.CaBulkDeleteConfirmView[source]ΒΆ
Bases:
trustpoint.views.base.BulkDeleteViewView to confirm the deletion of multiple CAs.