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 0x7f4852b527d0>), ('auth_key', <django.forms.fields.CharField object at 0x7f4852b52290>)])
declared_fields = OrderedDict([('transfer_id', <django.forms.fields.CharField object at 0x7f4852b527d0>), ('auth_key', <django.forms.fields.CharField object at 0x7f4852b52290>)])
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 0x7f4850405750>), ('device', <django.forms.fields.CharField object at 0x7f4850405ad0>)])
declared_fields = OrderedDict([('instance', <horizon.forms.fields.ThemableChoiceField object at 0x7f4850405750>), ('device', <django.forms.fields.CharField object at 0x7f4850405ad0>)])
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 0x7f48500c3f50>), ('description', <django.forms.fields.CharField object at 0x7f48500c3fd0>), ('volume_source_type', <django.forms.fields.ChoiceField object at 0x7f4850405890>), ('snapshot_source', <django.forms.fields.ChoiceField object at 0x7f48504057d0>), ('image_source', <django.forms.fields.ChoiceField object at 0x7f4850405250>), ('volume_source', <django.forms.fields.ChoiceField object at 0x7f48504059d0>), ('type', <django.forms.fields.ChoiceField object at 0x7f4850405510>), ('size', <django.forms.fields.IntegerField object at 0x7f48504056d0>), ('availability_zone', <django.forms.fields.ChoiceField object at 0x7f4850405b90>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f48500c3f50>), ('description', <django.forms.fields.CharField object at 0x7f48500c3fd0>), ('volume_source_type', <django.forms.fields.ChoiceField object at 0x7f4850405890>), ('snapshot_source', <django.forms.fields.ChoiceField object at 0x7f48504057d0>), ('image_source', <django.forms.fields.ChoiceField object at 0x7f4850405250>), ('volume_source', <django.forms.fields.ChoiceField object at 0x7f48504059d0>), ('type', <django.forms.fields.ChoiceField object at 0x7f4850405510>), ('size', <django.forms.fields.IntegerField object at 0x7f48504056d0>), ('availability_zone', <django.forms.fields.ChoiceField object at 0x7f4850405b90>)])
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 0x7f4850405a50>), ('description', <django.forms.fields.CharField object at 0x7f4850405d90>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4850405a50>), ('description', <django.forms.fields.CharField object at 0x7f4850405d90>)])
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 0x7f4852b529d0>)])
clean_name()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4852b529d0>)])
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 0x7f4850332b50>), ('orig_size', <django.forms.fields.IntegerField object at 0x7f4850332ed0>), ('new_size', <django.forms.fields.IntegerField object at 0x7f4850332f50>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4850332b50>), ('orig_size', <django.forms.fields.IntegerField object at 0x7f4850332ed0>), ('new_size', <django.forms.fields.IntegerField object at 0x7f4850332f50>)])
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 0x7f4850151310>), ('on-demand', <django.utils.functional.__proxy__ object at 0x7f4850151750>)]
base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4850332310>), ('volume_type', <horizon.forms.fields.ThemableChoiceField object at 0x7f48501519d0>), ('migration_policy', <django.forms.fields.ChoiceField object at 0x7f48501514d0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4850332310>), ('volume_type', <horizon.forms.fields.ThemableChoiceField object at 0x7f48501519d0>), ('migration_policy', <django.forms.fields.ChoiceField object at 0x7f48501514d0>)])
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 0x7f4852b52390>), ('id', <django.forms.fields.CharField object at 0x7f4852b52110>), ('auth_key', <django.forms.fields.CharField object at 0x7f48503329d0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4852b52390>), ('id', <django.forms.fields.CharField object at 0x7f4852b52110>), ('auth_key', <django.forms.fields.CharField object at 0x7f48503329d0>)])
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 0x7f4850332050>), ('description', <django.forms.fields.CharField object at 0x7f4850332890>), ('bootable', <django.forms.fields.BooleanField object at 0x7f4850332350>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4850332050>), ('description', <django.forms.fields.CharField object at 0x7f4850332890>), ('bootable', <django.forms.fields.BooleanField object at 0x7f4850332350>)])
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 0x7f4850332750>), ('image_name', <django.forms.fields.CharField object at 0x7f4850332bd0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f4850332710>), ('force', <django.forms.fields.BooleanField object at 0x7f4850332410>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4850332750>), ('image_name', <django.forms.fields.CharField object at 0x7f4850332bd0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f4850332710>), ('force', <django.forms.fields.BooleanField object at 0x7f4850332410>)])
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.urls Module

Next topic

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

Project Source

This Page