The openstack_dashboard.dashboards.project.volumes.tables ModuleΒΆ

class openstack_dashboard.dashboards.project.volumes.tables.AttachedInstanceColumn(transform, verbose_name=None, sortable=True, link=None, allowed_data_types=[], hidden=False, attrs=None, status=False, status_choices=None, display_choices=None, empty_value=None, filters=None, classes=None, summation=None, auto=None, truncate=None, link_classes=None)[source]

Bases: horizon.tables.base.Column

Customized column class that does complex processing on the attachments for a volume instance.

AttachedInstanceColumn.get_raw_data(attachment)[source]
class openstack_dashboard.dashboards.project.volumes.tables.AttachmentColumn(transform, verbose_name=None, sortable=True, link=None, allowed_data_types=[], hidden=False, attrs=None, status=False, status_choices=None, display_choices=None, empty_value=None, filters=None, classes=None, summation=None, auto=None, truncate=None, link_classes=None)[source]

Bases: horizon.tables.base.Column

Customized column class that does complex processing on the attachments for a volume instance.

AttachmentColumn.get_raw_data(volume)[source]
class openstack_dashboard.dashboards.project.volumes.tables.AttachmentsTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class AttachmentsTable.Meta[source]
AttachmentsTable.Meta.name = 'attachments'
AttachmentsTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.volumes.tables.DetachVolume'>,)
AttachmentsTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.volumes.tables.DetachVolume'>,)
AttachmentsTable.base_actions = {'detach': <DetachVolume: detach>}
AttachmentsTable.base_columns = {'instance': <AttachedInstanceColumn: instance>, 'device': <Column: device>}
AttachmentsTable.get_object_by_id(obj_id)[source]
AttachmentsTable.get_object_display(attachment)[source]
AttachmentsTable.get_object_id(obj)[source]
class openstack_dashboard.dashboards.project.volumes.tables.CreateSnapshot(verbose_name=None, allowed_data_types=[], url=None, attrs=None)[source]

Bases: horizon.tables.actions.LinkAction

CreateSnapshot.allowed(request, volume=None)[source]
CreateSnapshot.classes = ('ajax-modal', 'btn-camera')
CreateSnapshot.name = 'snapshots'
CreateSnapshot.url = 'horizon:project:volumes:create_snapshot'
CreateSnapshot.verbose_name = <django.utils.functional.__proxy__ object at 0x79f1250>
class openstack_dashboard.dashboards.project.volumes.tables.CreateVolume(verbose_name=None, allowed_data_types=[], url=None, attrs=None)[source]

Bases: horizon.tables.actions.LinkAction

CreateVolume.classes = ('ajax-modal', 'btn-create')
CreateVolume.name = 'create'
CreateVolume.url = 'horizon:project:volumes:create'
CreateVolume.verbose_name = <django.utils.functional.__proxy__ object at 0x79f1510>
class openstack_dashboard.dashboards.project.volumes.tables.DeleteVolume[source]

Bases: horizon.tables.actions.DeleteAction

DeleteVolume.action_past = <django.utils.functional.__proxy__ object at 0x79f1b10>
DeleteVolume.allowed(request, volume=None)[source]
DeleteVolume.data_type_plural = <django.utils.functional.__proxy__ object at 0x79f1c50>
DeleteVolume.data_type_singular = <django.utils.functional.__proxy__ object at 0x79f10d0>
DeleteVolume.delete(request, obj_id)[source]
class openstack_dashboard.dashboards.project.volumes.tables.DetachVolume[source]

Bases: horizon.tables.actions.BatchAction

DetachVolume.action(request, obj_id)[source]
DetachVolume.action_past = <django.utils.functional.__proxy__ object at 0x79e2490>
DetachVolume.action_present = <django.utils.functional.__proxy__ object at 0x79e2050>
DetachVolume.classes = ('btn-danger', 'btn-detach')
DetachVolume.data_type_plural = <django.utils.functional.__proxy__ object at 0x79e23d0>
DetachVolume.data_type_singular = <django.utils.functional.__proxy__ object at 0x79e2710>
DetachVolume.get_success_url(request)[source]
DetachVolume.name = 'detach'
class openstack_dashboard.dashboards.project.volumes.tables.EditAttachments(verbose_name=None, allowed_data_types=[], url=None, attrs=None)[source]

Bases: horizon.tables.actions.LinkAction

EditAttachments.allowed(request, volume=None)[source]
EditAttachments.classes = ('ajax-modal', 'btn-edit')
EditAttachments.name = 'attachments'
EditAttachments.url = 'horizon:project:volumes:attach'
EditAttachments.verbose_name = <django.utils.functional.__proxy__ object at 0x79f1b50>
class openstack_dashboard.dashboards.project.volumes.tables.UpdateRow(table, datum=None)[source]

Bases: horizon.tables.base.Row

UpdateRow.ajax = True
UpdateRow.get_data(request, volume_id)[source]
class openstack_dashboard.dashboards.project.volumes.tables.VolumesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: openstack_dashboard.dashboards.project.volumes.tables.VolumesTableBase

class VolumesTable.Meta[source]
VolumesTable.Meta.name = 'volumes'
VolumesTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.volumes.tables.EditAttachments'>, <class 'openstack_dashboard.dashboards.project.volumes.tables.CreateSnapshot'>, <class 'openstack_dashboard.dashboards.project.volumes.tables.DeleteVolume'>)
VolumesTable.Meta.row_class

alias of UpdateRow

VolumesTable.Meta.status_columns = ['status']
VolumesTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.volumes.tables.CreateVolume'>, <class 'openstack_dashboard.dashboards.project.volumes.tables.DeleteVolume'>)
VolumesTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x79e29d0>
VolumesTable.base_actions = {'attachments': <EditAttachments: attachments>, 'create': <CreateVolume: create>, 'delete': <DeleteVolume: delete>, 'snapshots': <CreateSnapshot: snapshots>}
VolumesTable.base_columns = {'name': <Column: name>, 'description': <Column: description>, 'size': <Column: size>, 'status': <Column: status>, 'volume_type': <Column: volume_type>, 'attachments': <AttachmentColumn: attachments>}
class openstack_dashboard.dashboards.project.volumes.tables.VolumesTableBase(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

VolumesTableBase.STATUS_CHOICES = (('in-use', True), ('available', True), ('creating', None), ('error', False))
VolumesTableBase.base_actions = {}
VolumesTableBase.base_columns = {'name': <Column: name>, 'description': <Column: description>, 'size': <Column: size>, 'status': <Column: status>}
VolumesTableBase.get_object_display(obj)[source]
openstack_dashboard.dashboards.project.volumes.tables.get_attachment_name(request, attachment)[source]
openstack_dashboard.dashboards.project.volumes.tables.get_size(volume)[source]
openstack_dashboard.dashboards.project.volumes.tables.get_volume_type(volume)[source]

Previous topic

The openstack_dashboard.dashboards.project.volumes.tests Module

Next topic

The openstack_dashboard.dashboards.project.images_and_snapshots Module

This Page