FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Masters Of The Universe

 
 
LinkBack Thread Tools
 
Old 02-11-2009, 11:54 PM
David Cantrell
 
Default 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
 

Thread Tools




All times are GMT. The time now is 05:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org