The openstack_dashboard.dashboards.project.volumes.volumes.forms ModuleΒΆ

Views for managing volumes.

class openstack_dashboard.dashboards.project.volumes.volumes.forms.AcceptTransferForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('transfer_id', <django.forms.fields.CharField object at 0x7f6ab82e2950>), ('auth_key', <django.forms.fields.CharField object at 0x7f6ab82e2290>)])
declared_fields = OrderedDict([('transfer_id', <django.forms.fields.CharField object at 0x7f6ab82e2950>), ('auth_key', <django.forms.fields.CharField object at 0x7f6ab82e2290>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.AttachForm(*args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('instance', <horizon.forms.fields.ThemableChoiceField object at 0x7f6ab82e26d0>), ('device', <django.forms.fields.CharField object at 0x7f6ab82e2790>)])
declared_fields = OrderedDict([('instance', <horizon.forms.fields.ThemableChoiceField object at 0x7f6ab82e26d0>), ('device', <django.forms.fields.CharField object at 0x7f6ab82e2790>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.CreateForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6aba332ad0>), ('description', <django.forms.fields.CharField object at 0x7f6ab851a910>), ('volume_source_type', <django.forms.fields.ChoiceField object at 0x7f6ab89654d0>), ('snapshot_source', <django.forms.fields.ChoiceField object at 0x7f6ab9d28990>), ('image_source', <django.forms.fields.ChoiceField object at 0x7f6ab9d28950>), ('volume_source', <django.forms.fields.ChoiceField object at 0x7f6ab9d289d0>), ('type', <django.forms.fields.ChoiceField object at 0x7f6ab9fedd90>), ('size', <django.forms.fields.IntegerField object at 0x7f6ab9feddd0>), ('availability_zone', <django.forms.fields.ChoiceField object at 0x7f6ab9d00050>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6aba332ad0>), ('description', <django.forms.fields.CharField object at 0x7f6ab851a910>), ('volume_source_type', <django.forms.fields.ChoiceField object at 0x7f6ab89654d0>), ('snapshot_source', <django.forms.fields.ChoiceField object at 0x7f6ab9d28990>), ('image_source', <django.forms.fields.ChoiceField object at 0x7f6ab9d28950>), ('volume_source', <django.forms.fields.ChoiceField object at 0x7f6ab9d289d0>), ('type', <django.forms.fields.ChoiceField object at 0x7f6ab9fedd90>), ('size', <django.forms.fields.IntegerField object at 0x7f6ab9feddd0>), ('availability_zone', <django.forms.fields.ChoiceField object at 0x7f6ab9d00050>)])
get_image(*args, **kwargs)[source]
get_snapshot(*args, **kwargs)[source]
get_volume(*args, **kwargs)[source]
get_volumes(request)[source]
handle(request, data)[source]
media
prepare_source_fields_default(request)[source]
prepare_source_fields_if_image_specified(request)[source]
prepare_source_fields_if_snapshot_specified(request)[source]
prepare_source_fields_if_volume_specified(request)[source]
class openstack_dashboard.dashboards.project.volumes.volumes.forms.CreateSnapshotForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab82e2550>), ('description', <django.forms.fields.CharField object at 0x7f6ab82e2c50>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab82e2550>), ('description', <django.forms.fields.CharField object at 0x7f6ab82e2c50>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.CreateTransferForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab82e2810>)])
clean_name()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab82e2810>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.ExtendForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6abd844690>), ('orig_size', <django.forms.fields.IntegerField object at 0x7f6abd844190>), ('new_size', <django.forms.fields.IntegerField object at 0x7f6ab7dcdb50>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6abd844690>), ('orig_size', <django.forms.fields.IntegerField object at 0x7f6abd844190>), ('new_size', <django.forms.fields.IntegerField object at 0x7f6ab7dcdb50>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.RetypeForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

MIGRATION_POLICY_CHOICES = [('never', <django.utils.functional.__proxy__ object at 0x7f6ab7dcdfd0>), ('on-demand', <django.utils.functional.__proxy__ object at 0x7f6ab7dcd610>)]
base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab7dcd7d0>), ('volume_type', <horizon.forms.fields.ThemableChoiceField object at 0x7f6ab7dcd950>), ('migration_policy', <django.forms.fields.ChoiceField object at 0x7f6ab7dcd750>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab7dcd7d0>), ('volume_type', <horizon.forms.fields.ThemableChoiceField object at 0x7f6ab7dcd950>), ('migration_policy', <django.forms.fields.ChoiceField object at 0x7f6ab7dcd750>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.ShowTransferForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab82e2350>), ('id', <django.forms.fields.CharField object at 0x7f6ab82e28d0>), ('auth_key', <django.forms.fields.CharField object at 0x7f6ab865d250>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab82e2350>), ('id', <django.forms.fields.CharField object at 0x7f6ab82e28d0>), ('auth_key', <django.forms.fields.CharField object at 0x7f6ab865d250>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.UpdateForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab8a5aad0>), ('description', <django.forms.fields.CharField object at 0x7f6ab8a5aed0>), ('bootable', <django.forms.fields.BooleanField object at 0x7f6ab8a5add0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab8a5aad0>), ('description', <django.forms.fields.CharField object at 0x7f6ab8a5aed0>), ('bootable', <django.forms.fields.BooleanField object at 0x7f6ab8a5add0>)])
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.volumes.volumes.forms.UploadToImageForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab8a5a610>), ('image_name', <django.forms.fields.CharField object at 0x7f6ab8a5a650>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f6ab95a0b10>), ('force', <django.forms.fields.BooleanField object at 0x7f6abd844a90>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f6ab8a5a610>), ('image_name', <django.forms.fields.CharField object at 0x7f6ab8a5a650>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f6ab95a0b10>), ('force', <django.forms.fields.BooleanField object at 0x7f6abd844a90>)])
handle(request, data)[source]
media
openstack_dashboard.dashboards.project.volumes.volumes.forms.availability_zones(request)[source]
openstack_dashboard.dashboards.project.volumes.volumes.forms.cinder_az_supported(request)[source]

Previous topic

The openstack_dashboard.dashboards.project.volumes.volumes.views Module

Next topic

The openstack_dashboard.dashboards.project.volumes.volumes Module

Project Source

This Page