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 0x7faf869c9b10>), ('description', <django.forms.fields.CharField object at 0x7faf869c9290>), ('source_type', <django.forms.fields.ChoiceField object at 0x7faf869c9f10>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7faf869c9910>), ('image_file', <django.forms.fields.FileField object at 0x7faf869c9990>), ('kernel', <django.forms.fields.ChoiceField object at 0x7faf882b0b50>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7faf882b0610>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7faf882b04d0>), ('architecture', <django.forms.fields.CharField object at 0x7faf882b0390>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7faf882b0290>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7faf882b0dd0>), ('is_copying', <django.forms.fields.BooleanField object at 0x7faf882b0e50>), ('is_public', <django.forms.fields.BooleanField object at 0x7faf882b07d0>), ('protected', <django.forms.fields.BooleanField object at 0x7faf882b05d0>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7faf869c9b10>), ('description', <django.forms.fields.CharField object at 0x7faf869c9290>), ('source_type', <django.forms.fields.ChoiceField object at 0x7faf869c9f10>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7faf869c9910>), ('image_file', <django.forms.fields.FileField object at 0x7faf869c9990>), ('kernel', <django.forms.fields.ChoiceField object at 0x7faf882b0b50>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7faf882b0610>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7faf882b04d0>), ('architecture', <django.forms.fields.CharField object at 0x7faf882b0390>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7faf882b0290>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7faf882b0dd0>), ('is_copying', <django.forms.fields.BooleanField object at 0x7faf882b0e50>), ('is_public', <django.forms.fields.BooleanField object at 0x7faf882b07d0>), ('protected', <django.forms.fields.BooleanField object at 0x7faf882b05d0>)])
handle(request, data)[source]
image_attrs = {'data-source-file': <django.utils.functional.__proxy__ object at 0x7faf869c9690>, '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 0x7faf869c9710>}
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 0x7faf869c9390>]
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 0x7faf882b0d50>), ('name', <django.forms.fields.CharField object at 0x7faf882b0e10>), ('description', <django.forms.fields.CharField object at 0x7faf881ab1d0>), ('kernel', <django.forms.fields.CharField object at 0x7faf881ab050>), ('ramdisk', <django.forms.fields.CharField object at 0x7faf881ab6d0>), ('architecture', <django.forms.fields.CharField object at 0x7faf881ab790>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7faf88446a50>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7faf8870b6d0>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7faf8870b7d0>), ('public', <django.forms.fields.BooleanField object at 0x7faf8870b110>), ('protected', <django.forms.fields.BooleanField object at 0x7faf8870bc90>)])
declared_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7faf882b0d50>), ('name', <django.forms.fields.CharField object at 0x7faf882b0e10>), ('description', <django.forms.fields.CharField object at 0x7faf881ab1d0>), ('kernel', <django.forms.fields.CharField object at 0x7faf881ab050>), ('ramdisk', <django.forms.fields.CharField object at 0x7faf881ab6d0>), ('architecture', <django.forms.fields.CharField object at 0x7faf881ab790>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7faf88446a50>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7faf8870b6d0>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7faf8870b7d0>), ('public', <django.forms.fields.BooleanField object at 0x7faf8870b110>), ('protected', <django.forms.fields.BooleanField object at 0x7faf8870bc90>)])
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