[vbox-dev] Webservice Python API issue

Josh Wright jshwright at gmail.com
Thu May 6 21:15:24 GMT 2010

I'm attempting to change the type of a hard disk from Normal to
Immutable via the webservice API (using the Python bindings from the

hard_disk.type = mgr.constants.HardDiskType_Immutable

Which fails with the following error:
  File "/home/josh/vboxapi/VirtualBox_wrappers.py", line 4656, in __setattr__
  File "/home/josh/vboxapi/VirtualBox_wrappers.py", line 4790, in setType
    req._type = value.handle
AttributeError: 'str' object has no attribute 'handle'

The same code works just fine against the XPCOM bindings.


More information about the vbox-dev mailing list