[vbox-dev] Webservice Python API issue

Nikolay Igotti Nikolay.Igotti at Sun.COM
Fri May 7 06:18:53 GMT 2010


  Hi Josh,

Thanks for report, this issue was already fixed, and fix will appear in 
upcoming Beta 2.

Thanks,
Nikolay

Josh Wright пишет:
> 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
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>   





More information about the vbox-dev mailing list