castellan_ui.content.public_keys.views
Module¶castellan_ui.content.public_keys.views.
DetailView
(**kwargs)[source]Bases: horizon.views.HorizonTemplateView
get_context_data
(**kwargs)[source]Gets the context data for key.
page_title
= u'Public Key Details'template_name
= 'public_key_detail.html'castellan_ui.content.public_keys.views.
GenerateView
(*args, **kwargs)[source]Bases: horizon.forms.views.ModalFormView
form_class
alias of castellan_ui.content.shared_forms.GenerateKeyPair
page_title
= u'Generate Key Pair'submit_label
= u'Generate Key Pair'submit_url
= u'/project/public_keys/generate/'success_url
= u'/project/public_keys/'template_name
= 'public_key_generate.html'castellan_ui.content.public_keys.views.
ImportView
(*args, **kwargs)[source]Bases: horizon.forms.views.ModalFormView
form_class
alias of castellan_ui.content.public_keys.forms.ImportPublicKey
get_object_id
(key_uuid)[source]Returns the ID of the created object.
For dynamic insertion of resources created in modals,
this method returns the id of the created object.
Defaults to returning the id
attribute.
page_title
= u'Import Public Key'submit_label
= u'Import Public Key'submit_url
= u'/project/public_keys/import/'success_url
= u'/project/public_keys/'template_name
= 'public_key_import.html'castellan_ui.content.public_keys.views.
IndexView
(*args, **kwargs)[source]Bases: horizon.tables.views.MultiTableView
get_public_key_data
()[source]table_classes
= [<class 'castellan_ui.content.public_keys.tables.PublicKeyTable'>]template_name
= 'public_keys.html'castellan_ui.content.public_keys.views.
download_key
(request, object_id)[source]Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.