#NEWLINE# def detect_coordinates( self , request , queryset ) : #NEWLINE# #INDENT# send_task ( 'structure' , 'detect_vm_coordinates_batch' ) ( [ vm . to_string ( ) for vm in queryset ] ) #NEWLINE# tasks_scheduled = queryset . count ( ) #NEWLINE# message = ungettext ( 'Coordinates detection has been scheduled for one virtual machine' , 'Coordinates detection has been scheduled for %(tasks_scheduled)d virtual machines' , tasks_scheduled ) #NEWLINE# message = ( message % { #NEWLINE# #INDENT# 'tasks_scheduled' : tasks_scheduled , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . message_user ( request , message )