The blazar_dashboard.content.leases.forms
ModuleΒΆ
-
class
blazar_dashboard.content.leases.forms.
CreateForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
base_fields
= OrderedDict([('name', <django.forms.fields.CharField object>), ('start_date', <django.forms.fields.DateTimeField object>), ('end_date', <django.forms.fields.DateTimeField object>), ('resource_type', <django.forms.fields.ChoiceField object>), ('min_hosts', <django.forms.fields.IntegerField object>), ('max_hosts', <django.forms.fields.IntegerField object>), ('hypervisor_properties', <django.forms.fields.CharField object>), ('resource_properties', <django.forms.fields.CharField object>), ('amount', <django.forms.fields.IntegerField object>), ('vcpus', <django.forms.fields.IntegerField object>), ('memory_mb', <django.forms.fields.IntegerField object>), ('disk_gb', <django.forms.fields.IntegerField object>)])
-
clean
()[source]
-
declared_fields
= OrderedDict([('name', <django.forms.fields.CharField object>), ('start_date', <django.forms.fields.DateTimeField object>), ('end_date', <django.forms.fields.DateTimeField object>), ('resource_type', <django.forms.fields.ChoiceField object>), ('min_hosts', <django.forms.fields.IntegerField object>), ('max_hosts', <django.forms.fields.IntegerField object>), ('hypervisor_properties', <django.forms.fields.CharField object>), ('resource_properties', <django.forms.fields.CharField object>), ('amount', <django.forms.fields.IntegerField object>), ('vcpus', <django.forms.fields.IntegerField object>), ('memory_mb', <django.forms.fields.IntegerField object>), ('disk_gb', <django.forms.fields.IntegerField object>)])
-
handle
(request, data)[source]
-
media
-
-
class
blazar_dashboard.content.leases.forms.
UpdateForm
(request, *args, **kwargs)[source] Bases:
horizon.forms.base.SelfHandlingForm
-
class
Meta
[source] Bases:
object
-
name
= u'Update Lease Parameters'
-
-
base_fields
= OrderedDict([('lease_id', <django.forms.fields.CharField object>), ('lease_name', <django.forms.fields.CharField object>), ('start_time', <django.forms.fields.CharField object>), ('end_time', <django.forms.fields.CharField object>)])
-
clean
()[source]
-
declared_fields
= OrderedDict([('lease_id', <django.forms.fields.CharField object>), ('lease_name', <django.forms.fields.CharField object>), ('start_time', <django.forms.fields.CharField object>), ('end_time', <django.forms.fields.CharField object>)])
-
handle
(request, data)[source]
-
media
-
class