bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pyparted - change PedPartition's native_type attribute?


From: George Goh
Subject: pyparted - change PedPartition's native_type attribute?
Date: Wed, 30 Jan 2008 10:04:08 +0800

Hi,

I'm using pyparted 1.8.5 and I'm trying to change the native_type
attribute of a PedPartition object as follows:

>>> import parted
>>> sda = parted.PedDevice.get('/dev/sda')
>>> d = parted.PedDisk.new(sda)
>>> sda1 = d.get_partition(1)
>>> sda1.native_type
 131

>>> sda1.native_type = 0x8e
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
TypeError: attribute 'native_type' of 'PedPartition' objects is not
writable


Is there any way to change the 'native_type' attribute in pyparted?

Sorry if I'm posting in the wrong list (please redirect me to the right
one).

Thanks.

Regards,
George Goh





reply via email to

[Prev in Thread] Current Thread [Next in Thread]