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 0x7f19bab36a90>), ('description', <django.forms.fields.CharField object at 0x7f19bab36050>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f19bdde7b50>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f19bdde7950>), ('image_file', <django.forms.fields.FileField object at 0x7f19bdde7350>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f19b9de71d0>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f19b9de76d0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f19bb76a990>), ('architecture', <django.forms.fields.CharField object at 0x7f19bb76aa90>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f19bb76a4d0>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f19bb76ad10>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f19bb76a690>), ('is_public', <django.forms.fields.BooleanField object at 0x7f19ba6bcbd0>), ('protected', <django.forms.fields.BooleanField object at 0x7f19bba4c410>)])
clean()[source]
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f19bab36a90>), ('description', <django.forms.fields.CharField object at 0x7f19bab36050>), ('source_type', <django.forms.fields.ChoiceField object at 0x7f19bdde7b50>), ('image_url', <openstack_dashboard.dashboards.project.images.images.forms.ImageURLField object at 0x7f19bdde7950>), ('image_file', <django.forms.fields.FileField object at 0x7f19bdde7350>), ('kernel', <django.forms.fields.ChoiceField object at 0x7f19b9de71d0>), ('ramdisk', <django.forms.fields.ChoiceField object at 0x7f19b9de76d0>), ('disk_format', <django.forms.fields.ChoiceField object at 0x7f19bb76a990>), ('architecture', <django.forms.fields.CharField object at 0x7f19bb76aa90>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f19bb76a4d0>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f19bb76ad10>), ('is_copying', <django.forms.fields.BooleanField object at 0x7f19bb76a690>), ('is_public', <django.forms.fields.BooleanField object at 0x7f19ba6bcbd0>), ('protected', <django.forms.fields.BooleanField object at 0x7f19bba4c410>)])
handle(request, data)[source]
image_attrs = {'data-source-file': <django.utils.functional.__proxy__ object at 0x7f19bdde7f10>, 'image-file-on-change': None, 'ng-change': 'ctrl.selectImageFormat(ctrl.imageFile.name)', 'class': 'switched', 'ng-model': 'ctrl.imageFile', 'data-switch-on': 'source'}
image_url_attrs = {'ng-model': 'ctrl.copyFrom', 'ng-change': 'ctrl.selectImageFormat(ctrl.copyFrom)', 'data-source-url': <django.utils.functional.__proxy__ object at 0x7f19bdde7b10>, 'class': 'switched', 'placeholder': 'http://example.com/image.img', 'data-switch-on': 'source'}
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 0x7f19bab36e90>]
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 0x7f19baa31410>), ('name', <django.forms.fields.CharField object at 0x7f19bba4c6d0>), ('description', <django.forms.fields.CharField object at 0x7f19bba4c5d0>), ('kernel', <django.forms.fields.CharField object at 0x7f19bba4cd10>), ('ramdisk', <django.forms.fields.CharField object at 0x7f19bba4ca90>), ('architecture', <django.forms.fields.CharField object at 0x7f19bba4c290>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f19bba4c210>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f19bba4c190>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f19baa96c50>), ('public', <django.forms.fields.BooleanField object at 0x7f19baa96310>), ('protected', <django.forms.fields.BooleanField object at 0x7f19baa96990>)])
declared_fields = OrderedDict([('image_id', <django.forms.fields.CharField object at 0x7f19baa31410>), ('name', <django.forms.fields.CharField object at 0x7f19bba4c6d0>), ('description', <django.forms.fields.CharField object at 0x7f19bba4c5d0>), ('kernel', <django.forms.fields.CharField object at 0x7f19bba4cd10>), ('ramdisk', <django.forms.fields.CharField object at 0x7f19bba4ca90>), ('architecture', <django.forms.fields.CharField object at 0x7f19bba4c290>), ('disk_format', <horizon.forms.fields.ThemableChoiceField object at 0x7f19bba4c210>), ('minimum_disk', <django.forms.fields.IntegerField object at 0x7f19bba4c190>), ('minimum_ram', <django.forms.fields.IntegerField object at 0x7f19baa96c50>), ('public', <django.forms.fields.BooleanField object at 0x7f19baa96310>), ('protected', <django.forms.fields.BooleanField object at 0x7f19baa96990>)])
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