Пример #1
0
 def op_reboot( self, request ):
    	dom = getVar( 'dom', request )
     if not dom is None and dom != '0':
 	    if DEBUG: print ">DomReboot %s" % dom
         try:
         	server.xend_domain_shutdown( int( dom ), "reboot" )
         except:
         	pass
Пример #2
0
 def op_reboot(self, request):
     dom = getVar('dom', request)
     if not dom is None and dom != '0':
         if DEBUG: print ">DomReboot %s" % dom
         try:
             server.xend_domain_shutdown(int(dom), "reboot")
         except:
             pass
Пример #3
0
  def op_shutdown( self, request ):
 	dom = getVar( 'dom', request )
      if not dom is None and dom != '0':
  	   if DEBUG: print ">DomShutDown %s" % dom
         try:
  	   	server.xend_domain_shutdown( int( dom ), "poweroff" )
         except:
         	pass
Пример #4
0
 def op_shutdown(self, request):
     dom = getVar('dom', request)
     if not dom is None and dom != '0':
         if DEBUG: print ">DomShutDown %s" % dom
         try:
             server.xend_domain_shutdown(int(dom), "poweroff")
         except:
             pass