The openstack_dashboard.dashboards.project.images.utils ModuleΒΆ

openstack_dashboard.dashboards.project.images.utils.get_available_images(request, project_id=None, images_cache=None)[source]

Returns a list of images that are public or owned by the given project_id. If project_id is not specified, only public images are returned.

Parameters:images_cache – An optional dict-like object in which to cache public and per-project id image metadata.
openstack_dashboard.dashboards.project.images.utils.image_field_data(request, include_empty_option=False)[source]

Returns a list of tuples of all images.

Generates a sorted list of images available. And returns a list of (id, name) tuples.

Parameters:
  • request – django http request object
  • include_empty_option – flag to include a empty tuple in the front of the list
Returns:

list of (id, name) tuples

Previous topic

The openstack_dashboard.dashboards.project.network_topology.subnets.tables Module

Next topic

The openstack_dashboard.dashboards.project.images Module

Project Source

This Page