Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Make clearDisksWindow use device.model not device.partedDevice.model (http://www.linux-archive.org/ubuntu-kernel-team/309967-make-cleardiskswindow-use-device-model-not-device-parteddevice-model.html)

Peter Jones 01-15-2010 08:23 PM

Make clearDisksWindow use device.model not device.partedDevice.model
 
StorageDevice and all its heirs have device.model so it can be
subclassed; use it.
---
iw/cleardisks_gui.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iw/cleardisks_gui.py b/iw/cleardisks_gui.py
index eeff59b..23803c7 100644
--- a/iw/cleardisks_gui.py
+++ b/iw/cleardisks_gui.py
@@ -136,7 +136,7 @@ class ClearDisksWindow (InstallWindow):
continue

self.store.append(None, (device, True, True, False, False,
- device.partedDevice.model,
+ device.model,
str(int(device.size)) + " MB",
device.vendor, "", device.serial))

--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Chris Lumens 01-15-2010 09:04 PM

Make clearDisksWindow use device.model not device.partedDevice.model
 
> StorageDevice and all its heirs have device.model so it can be
> subclassed; use it.

This one looks fine.

- Chris

_______________________________________________
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 03:47 AM.

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