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 0x7f4244d51910>), ('description', <django.forms.fields.CharField object at 0x7f4244cba150>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f4244cba2d0>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f4244cba450>), ('image_file', <django.forms.fields.FileField object at 0x7f4244cba650>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f4244cba7d0>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f4244cba8d0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f4244cba9d0>), ('architecture', <django.forms.fields.CharField object at 0x7f4244cbaad0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f4244cbacd0>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f4244cbae90>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f4244c95110>), ('is_public', <django.forms.fields.BooleanField object at 0x7f4244c95250>), ('protected', <django.forms.fields.BooleanField object at 0x7f4244c953d0>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4244d51910>), ('description', <django.forms.fields.CharField object at 0x7f4244cba150>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f4244cba2d0>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f4244cba450>), ('image_file', <django.forms.fields.FileField object at 0x7f4244cba650>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f4244cba7d0>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f4244cba8d0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f4244cba9d0>), ('architecture', <django.forms.fields.CharField object at 0x7f4244cbaad0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f4244cbacd0>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f4244cbae90>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f4244c95110>), ('is_public', <django.forms.fields.BooleanField object at 0x7f4244c95250>), ('protected', <django.forms.fields.BooleanField object at 0x7f4244c953d0>)])
handle(request, data)[source]
image_attrs = {'data-switch-on': 'source', 'data-source-file': <django.utils.functional.__proxy__ object at 0x7f4244cba550>, 'image-file-on-change': None, 'ng-model': 'ctrl.imageFile', 'class': 'switched', 'ng-change': 'ctrl.selectImageFormat(ctrl.imageFile.name)'}
image_url_attrs = {'data-switch-on': 'source', 'ng-model': 'ctrl.copyFrom', 'class': 'switched', 'placeholder': 'http://example.com/image.img', 'data-source-url': <django.utils.functional.__proxy__ object at 0x7f4244cba350>, '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 0x7f4244d51a10>]
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 0x7f4244c95650>), ('name', <django.forms.fields.CharField object at 0x7f42464cb650>), ('description', <django.forms.fields.CharField object at 0x7f4244c957d0>), ('kernel', <django.forms.fields.CharField object at 0x7f4244c95950>), ('ramdisk', <django.forms.fields.CharField object at 0x7f4244c95ad0>), ('architecture', <django.forms.fields.CharField object at 0x7f4244c95c50>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f4244c95d10>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f4244c95e90>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f4244c9d090>), ('public', <django.forms.fields.BooleanField object at 0x7f4244c9d250>), ('protected', <django.forms.fields.BooleanField object at 0x7f4244c9d310>)])
declared_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7f4244c95650>), ('name', <django.forms.fields.CharField object at 0x7f42464cb650>), ('description', <django.forms.fields.CharField object at 0x7f4244c957d0>), ('kernel', <django.forms.fields.CharField object at 0x7f4244c95950>), ('ramdisk', <django.forms.fields.CharField object at 0x7f4244c95ad0>), ('architecture', <django.forms.fields.CharField object at 0x7f4244c95c50>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f4244c95d10>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f4244c95e90>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f4244c9d090>), ('public', <django.forms.fields.BooleanField object at 0x7f4244c9d250>), ('protected', <django.forms.fields.BooleanField object at 0x7f4244c9d310>)])
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.urls Module

Next topic

The openstack_dashboard.dashboards.project.images.images Module

Project Source

This Page