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 0x7f44706dd850>), ('description', <django.forms.fields.CharField object at 0x7f44706dd450>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f44706dda90>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f44706ddf90>), ('image_file', <django.forms.fields.FileField object at 0x7f44706dd090>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f44706dd190>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f44706dd610>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f44706dd950>), ('architecture', <django.forms.fields.CharField object at 0x7f44706ddc10>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f44706dd390>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f44706dd890>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f446f502b50>), ('is_public', <django.forms.fields.BooleanField object at 0x7f446f502250>), ('protected', <django.forms.fields.BooleanField object at 0x7f446f502c10>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f44706dd850>), ('description', <django.forms.fields.CharField object at 0x7f44706dd450>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f44706dda90>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f44706ddf90>), ('image_file', <django.forms.fields.FileField object at 0x7f44706dd090>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f44706dd190>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f44706dd610>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f44706dd950>), ('architecture', <django.forms.fields.CharField object at 0x7f44706ddc10>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f44706dd390>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f44706dd890>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f446f502b50>), ('is_public', <django.forms.fields.BooleanField object at 0x7f446f502250>), ('protected', <django.forms.fields.BooleanField object at 0x7f446f502c10>)])
handle(request, data)[source]
image_attrs = {'data-source-file': <django.utils.functional.__proxy__ object at 0x7f44706dd5d0>, 'ng-model': 'ctrl.imageFile', 'data-switch-on': 'source', 'ng-change': 'ctrl.selectImageFormat(ctrl.imageFile.name)', 'image-file-on-change': None, 'class': 'switched'}
image_url_attrs = {'ng-model': 'ctrl.copyFrom', 'data-switch-on': 'source', 'ng-change': 'ctrl.selectImageFormat(ctrl.copyFrom)', 'class': 'switched', 'data-source-url': <django.utils.functional.__proxy__ object at 0x7f44706dd790>}
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 0x7f446fcbc350>]
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 0x7f446f502790>), ('name', <django.forms.fields.CharField object at 0x7f446f502b10>), ('description', <django.forms.fields.CharField object at 0x7f446f502e50>), ('kernel', <django.forms.fields.CharField object at 0x7f446f502610>), ('ramdisk', <django.forms.fields.CharField object at 0x7f446f4b3790>), ('architecture', <django.forms.fields.CharField object at 0x7f446f4b3690>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f446f4b3fd0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f446f4b3350>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f446fa55fd0>), ('public', <django.forms.fields.BooleanField object at 0x7f446fa55b10>), ('protected', <django.forms.fields.BooleanField object at 0x7f446fa55a90>)])
declared_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7f446f502790>), ('name', <django.forms.fields.CharField object at 0x7f446f502b10>), ('description', <django.forms.fields.CharField object at 0x7f446f502e50>), ('kernel', <django.forms.fields.CharField object at 0x7f446f502610>), ('ramdisk', <django.forms.fields.CharField object at 0x7f446f4b3790>), ('architecture', <django.forms.fields.CharField object at 0x7f446f4b3690>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f446f4b3fd0>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f446f4b3350>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f446fa55fd0>), ('public', <django.forms.fields.BooleanField object at 0x7f446fa55b10>), ('protected', <django.forms.fields.BooleanField object at 0x7f446fa55a90>)])
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