[vbox-dev] Webservice Python API issue
Josh Wright
jshwright at gmail.com
Thu May 6 14:15:24 PDT 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
SDK).
hard_disk.type = mgr.constants.HardDiskType_Immutable
Which fails with the following error:
File "/home/josh/vboxapi/VirtualBox_wrappers.py", line 4656, in __setattr__
hndl[1](self,val)
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.
~JW
More information about the vbox-dev
mailing list