Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Masters Of The Universe (http://www.linux-archive.org/ubuntu-masters-universe/)
-   -   Syntax fixes for the new pyparted for parted.FileSystem. (http://www.linux-archive.org/ubuntu-masters-universe/244130-syntax-fixes-new-pyparted-parted-filesystem.html)

David Cantrell 02-11-2009 11:54 PM

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


All times are GMT. The time now is 10:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.