Example #1
0
 def shutdown_vm_confirmation(self, cloud_scheduler, cloud, image_id):
     return html_utils.yes_no_page('Are you sure you want to shutdown image %s on %s?' % (image_id, cloud), '/webui/shutdown_vm?cloud=%s&image_id=%s' % (urllib.quote_plus(cloud), urllib.quote_plus(image_id)), '/webui/list_running_interactive_images?cloud_scheduler=%s' % cloud_scheduler)
Example #2
0
 def delete_image_confirmation(self, repoman_server, owner, name):
     return html_utils.yes_no_page('Are you sure you want to delete %s/%s on %s?' % (owner, name, repoman_server), '/webui/delete_image?repoman_server=%s&owner=%s&name=%s' % (urllib.quote_plus(repoman_server), urllib.quote_plus(owner), urllib.quote_plus(name)), '/webui/list_current_user_images')