vboxapi.py revision ee231a249824f0a96643fb8b705f5b6cf3617b46
1N/A# available from http://www.virtualbox.org. This file is free software;
1N/Aif VboxBinDir is None:
1N/Aif VboxSdkDir is None:
1N/Aclass PerfCollector:
out = []
'values_as_string':'['+', '.join([fmt % (int(values[j])/scale, units[i]) for j in xrange(int(indices[i]), int(indices[i])+int(lengths[i]))])+']'
return out
except AttributeError:
except AttributeError:
class PlatformMSCOM:
class ConstantFake:
raise AttributeError
import win32com
raise AttributeError
if fake != None:
return fake
while parent != None:
if name is not None:
except AttributeError,e:
return fake
class InterfacesWrapper:
import win32com
raise AttributeError
except AttributeError,e:
import win32com
import pythoncom
import win32api
import threading
import win32com
import win32com
return False
import pythoncom
import pythoncom
exec (str,d,d)
import types
return rc;
return False;
return True;
import pythoncom
CloseHandle(h)
class PlatformXPCOM:
import xpcom
return False
import xpcom
import xpcom
exec (str,d,d)
import xpcom
import xpcom
import xpcom
class PlatformWEBSERVICE:
import VirtualBox_services
import VirtualBox_wrappers
if params is not None:
if url is None:
if user is None:
if passwd is None:
return True
return False;
exec (str,d,d)
class SessionManager:
class VirtualBoxManager:
if style is None:
raise ne
except Exception,e:
if permitSharing:
return session
if session is not None:
global VboxBinDir
return VboxBinDir
global VboxSdkDir
return VboxSdkDir