Syntax fixes for the new pyparted for parted.FileSystem.
To get the name of the filesystem type (e.g., 'ext3'), use
parted.FileSystem.type. This string is also a valid key in to
the parted.fileSystemType hash table. You can extract the value
from the hash table to get a _ped.FileSystemType object for your
filesystem.
---
iw/partition_gui.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index c39bbb7..abb2845 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -904,13 +904,13 @@ class PartitionWindow(InstallWindow):
if request and request.isEncrypted(self.partitions, True) and request.format:
self.tree[iter]['Format'] = self.lock_pixbuf
- elif part.fs_type:
+ elif part.fileSystem:
if request and request.fstype != None:
ptype = self.getShortFSTypeName(request.fstype.getName())
if ptype == "foreign":
ptype = map_foreign_to_fsname(part)
else:
- ptype = part.fs_type.name
+ ptype = part.fileSystem.type
if request and request.isEncrypted(self.partitions, True) and request.format:
self.tree[iter]['Format'] = self.lock_pixbuf
--
1.6.1.3
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list