Public bug reported:

Binary package hint: python-parted

Disk.target is implemented as a property with a setter but that will try
to set the .type of the underlying PedDisk object, which is readonly.
I'd report this bug upstream but the captcha at
https://admin.fedoraproject.org is unbeatable.

>>> disk = Disk(device=d)
>>> disk.type
'mac'
>>> disk.type = 'msdos'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/parted/disk.py", line 194, in <lambda>
    type = property(lambda s: s.__disk.type.name, lambda s, v: 
setattr(s.__disk, "type", parted.diskType[v]))
TypeError: readonly attribute

>>> ped= disk.getPedDisk()
>>> ped.type = parted.diskType['msdos']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: readonly attribute

** Affects: python-parted (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/686004

Title:
  Disk.target seems to be writable but fails when you try to do so

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to