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

Views for managing images.

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

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f10382065d0>), ('description', <django.forms.fields.CharField object at 0x7f103602c090>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f1037d20090>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f1037d20e90>), ('image_file', <django.forms.fields.FileField object at 0x7f1037d202d0>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f1037d20c50>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f10356a16d0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f10356a1a10>), ('architecture', <django.forms.fields.CharField object at 0x7f10356a1590>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f10356a1d50>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f10356a1050>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f1035ba7c50>), ('is_public', <django.forms.fields.BooleanField object at 0x7f1035ba7f50>), ('protected', <django.forms.fields.BooleanField object at 0x7f1035ba7190>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f10382065d0>), ('description', <django.forms.fields.CharField object at 0x7f103602c090>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f1037d20090>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f1037d20e90>), ('image_file', <django.forms.fields.FileField object at 0x7f1037d202d0>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f1037d20c50>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f10356a16d0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f10356a1a10>), ('architecture', <django.forms.fields.CharField object at 0x7f10356a1590>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f10356a1d50>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f10356a1050>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f1035ba7c50>), ('is_public', <django.forms.fields.BooleanField object at 0x7f1035ba7f50>), ('protected', <django.forms.fields.BooleanField object at 0x7f1035ba7190>)])
handle(request, data)[source]
image_attrs = {'data-source-file': <django.utils.functional.__proxy__ object at 0x7f103659ded0>, 'data-switch-on': 'source', 'ng-model': 'ctrl.imageFile', 'class': 'switched', 'image-file-on-change': None, 'ng-change': 'ctrl.selectImageFormat(ctrl.imageFile.name)'}
image_url_attrs = {'data-source-url': <django.utils.functional.__proxy__ object at 0x7f1037d205d0>, 'data-switch-on': 'source', 'ng-model': 'ctrl.copyFrom', 'class': 'switched', 'placeholder': 'http://example.com/image.img', 'ng-change': 'ctrl.selectImageFormat(ctrl.copyFrom)'}
media
class openstack_dashboard.dashboards.project.images.images.forms.ImageURLField(max_length=None, min_length=None, *args, **kwargs)[source]

Bases: django.forms.fields.URLField

default_validators = [<django.core.validators.URLValidator object at 0x7f10371ed310>]
class openstack_dashboard.dashboards.project.images.images.forms.UpdateImageForm(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7f1035ba7510>), ('name', <django.forms.fields.CharField object at 0x7f1035ba79d0>), ('description', <django.forms.fields.CharField object at 0x7f1035ba7ad0>), ('kernel', <django.forms.fields.CharField object at 0x7f1035ba7ed0>), ('ramdisk', <django.forms.fields.CharField object at 0x7f1035ba7590>), ('architecture', <django.forms.fields.CharField object at 0x7f103680bc10>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f103680b6d0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f103680b410>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f103680be10>), ('public', <django.forms.fields.BooleanField object at 0x7f103680bb50>), ('protected', <django.forms.fields.BooleanField object at 0x7f103680b790>)])
declared_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7f1035ba7510>), ('name', <django.forms.fields.CharField object at 0x7f1035ba79d0>), ('description', <django.forms.fields.CharField object at 0x7f1035ba7ad0>), ('kernel', <django.forms.fields.CharField object at 0x7f1035ba7ed0>), ('ramdisk', <django.forms.fields.CharField object at 0x7f1035ba7590>), ('architecture', <django.forms.fields.CharField object at 0x7f103680bc10>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f103680b6d0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f103680b410>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f103680be10>), ('public', <django.forms.fields.BooleanField object at 0x7f103680bb50>), ('protected', <django.forms.fields.BooleanField object at 0x7f103680b790>)])
handle(request, data)[source]
media
openstack_dashboard.dashboards.project.images.images.forms.create_image_metadata(data)[source]

Use the given dict of image form data to generate the metadata used for creating the image in glance.

Previous topic

The openstack_dashboard.dashboards.project.images.images Module

Next topic

The openstack_dashboard.dashboards.project.routers.urls Module

Project Source

This Page