The castellan_ui.content.private_keys.forms Module

The castellan_ui.content.private_keys.forms Module

class castellan_ui.content.private_keys.forms.ImportPrivateKey(request, *args, **kwargs)[source]

Bases: castellan_ui.content.shared_forms.ImportKey

base_fields = {'algorithm': <django.forms.fields.CharField object at 0x7fefeaecf1d0>, 'bit_length': <django.forms.fields.IntegerField object at 0x7fefeaecf290>, 'direct_input': <django.forms.fields.CharField object at 0x7fefeaecf810>, 'key_file': <django.forms.fields.FileField object at 0x7fefeaecf710>, 'name': <django.forms.fields.RegexField object at 0x7fefeaecf3d0>, 'source_type': <django.forms.fields.ChoiceField object at 0x7fefeaecf610>}
clean_key_data(key_data)[source]

This should be implemented for the specific key import form

declared_fields = {'algorithm': <django.forms.fields.CharField object at 0x7fefeaecf1d0>, 'bit_length': <django.forms.fields.IntegerField object at 0x7fefeaecf290>, 'direct_input': <django.forms.fields.CharField object at 0x7fefeaecf810>, 'key_file': <django.forms.fields.FileField object at 0x7fefeaecf710>, 'name': <django.forms.fields.RegexField object at 0x7fefeaecf3d0>, 'source_type': <django.forms.fields.ChoiceField object at 0x7fefeaecf610>}
handle(request, data)[source]
media
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.