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 0x7f9f41a83d10>), ('description', <django.forms.fields.CharField object at 0x7f9f41a83450>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f9f41d97450>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f9f400aec50>), ('image_file', <django.forms.fields.FileField object at 0x7f9f400ae810>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f9f400ae7d0>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f9f400aee10>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f9f400ae850>), ('architecture', <django.forms.fields.CharField object at 0x7f9f400aee50>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f9f41781e10>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f9f40e9f950>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f9f408aed90>), ('is_public', <django.forms.fields.BooleanField object at 0x7f9f408aeb10>), ('protected', <django.forms.fields.BooleanField object at 0x7f9f405c1e10>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f9f41a83d10>), ('description', <django.forms.fields.CharField object at 0x7f9f41a83450>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f9f41d97450>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f9f400aec50>), ('image_file', <django.forms.fields.FileField object at 0x7f9f400ae810>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f9f400ae7d0>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f9f400aee10>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f9f400ae850>), ('architecture', <django.forms.fields.CharField object at 0x7f9f400aee50>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f9f41781e10>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f9f40e9f950>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f9f408aed90>), ('is_public', <django.forms.fields.BooleanField object at 0x7f9f408aeb10>), ('protected', <django.forms.fields.BooleanField object at 0x7f9f405c1e10>)])
handle(request, data)[source]
image_attrs = {'data-switch-on': 'source', 'ng-model': 'ctrl.imageFile', 'image-file-on-change': None, 'class': 'switched', 'data-source-file': <django.utils.functional.__proxy__ object at 0x7f9f400ae190>, 'ng-change': 'ctrl.selectImageFormat(ctrl.imageFile.name)'}
image_url_attrs = {'data-switch-on': 'source', 'ng-model': 'ctrl.copyFrom', 'data-source-url': <django.utils.functional.__proxy__ object at 0x7f9f400ae390>, '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 0x7f9f4179a750>]
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 0x7f9f405c1390>), ('name', <django.forms.fields.CharField object at 0x7f9f405c1810>), ('description', <django.forms.fields.CharField object at 0x7f9f40299b50>), ('kernel', <django.forms.fields.CharField object at 0x7f9f40299850>), ('ramdisk', <django.forms.fields.CharField object at 0x7f9f40299e10>), ('architecture', <django.forms.fields.CharField object at 0x7f9f400d9590>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f9f400d9ad0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f9f400d9610>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f9f400d9190>), ('public', <django.forms.fields.BooleanField object at 0x7f9f400d9490>), ('protected', <django.forms.fields.BooleanField object at 0x7f9f400d9fd0>)])
declared_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7f9f405c1390>), ('name', <django.forms.fields.CharField object at 0x7f9f405c1810>), ('description', <django.forms.fields.CharField object at 0x7f9f40299b50>), ('kernel', <django.forms.fields.CharField object at 0x7f9f40299850>), ('ramdisk', <django.forms.fields.CharField object at 0x7f9f40299e10>), ('architecture', <django.forms.fields.CharField object at 0x7f9f400d9590>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f9f400d9ad0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f9f400d9610>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f9f400d9190>), ('public', <django.forms.fields.BooleanField object at 0x7f9f400d9490>), ('protected', <django.forms.fields.BooleanField object at 0x7f9f400d9fd0>)])
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.images.images.tabs Module

Project Source

This Page