The openstack_dashboard.utils.filters ModuleΒΆ

openstack_dashboard.utils.filters.get_display_label(choices, status)[source]

This method is used in places where a resource’s status or admin state labels need to assigned before they are sent to the view template.

openstack_dashboard.utils.filters.get_int_or_uuid(value)[source]

Check if a value is valid as UUID or an integer.

This method is mainly used to convert floating IP id to the appropriate type. For floating IP id, integer is used in Nova’s original implementation, but UUID is used in Neutron based one.

Previous topic

The openstack_dashboard.utils.metering Module

Next topic

The openstack_dashboard.local Module

Project Source

This Page