Пример #1
0
 def _populate_custom_choices(self, custom_type):
     if custom_type == 'neutron.network':
         return instance_utils.network_field_data(self.request, True)
     if custom_type == 'nova.keypair':
         return instance_utils.keypair_field_data(self.request, True)
     if custom_type == 'glance.image':
         return image_utils.image_field_data(self.request, True)
     if custom_type == 'nova.flavor':
         return instance_utils.flavor_field_data(self.request, True)
     return []
Пример #2
0
 def _populate_custom_choices(self, custom_type):
     if custom_type == 'neutron.network':
         return instance_utils.network_field_data(self.request, True)
     if custom_type == 'nova.keypair':
         return instance_utils.keypair_field_data(self.request, True)
     if custom_type == 'glance.image':
         return image_utils.image_field_data(self.request, True)
     if custom_type == 'nova.flavor':
         return instance_utils.flavor_field_data(self.request, True)
     return []
Пример #3
0
 def _populate_image_choices(self, include_empty=True):
     return image_utils.image_field_data(self.request, include_empty)