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 > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-04-2012, 02:43 PM
David Lehman
 
Default Disk selection determines clearpart.drives, not ignoredisk.onlyuse.

Filtering is separate from target disk selection.
---
pyanaconda/ui/gui/spokes/storage.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 7e532a5..23b3b33 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -327,12 +327,12 @@ class StorageSpoke(NormalSpoke):
def __init__(self, *args, **kwargs):
NormalSpoke.__init__(self, *args, **kwargs)
self._ready = False
- self.selected_disks = self.data.ignoredisk.onlyuse[:]
+ self.selected_disks = self.data.clearpart.drives[:]
self.autopart = self.data.autopart.autopart
self.clearPartType = CLEARPART_TYPE_LINUX

def apply(self):
- self.data.ignoredisk.onlyuse = self.selected_disks[:]
+ self.data.clearpart.drives = self.selected_disks[:]
self.data.autopart.autopart = self.autopart
self.data.bootloader.location = "mbr"
self.data.clearpart.type = self.clearPartType
@@ -351,10 +351,10 @@ class StorageSpoke(NormalSpoke):
def status(self):
""" A short string describing the current status of storage setup. """
msg = _("No disks selected")
- if self.data.ignoredisk.onlyuse:
+ if self.data.clearpart.drives:
msg = P_(("%d disk selected"),
("%d disks selected"),
- len(self.data.ignoredisk.onlyuse)) % len(self.data.ignoredisk.onlyuse)
+ len(self.data.clearpart.drives)) % len(self.data.clearpart.drives)

if self.data.autopart.autopart:
msg = _("Automatic partitioning selected")
@@ -380,7 +380,7 @@ class StorageSpoke(NormalSpoke):

def refresh(self):
# synchronize our local data store with the global ksdata
- self.selected_disks = self.data.ignoredisk.onlyuse[:]
+ self.selected_disks = self.data.clearpart.drives[:]
self.autopart = self.data.autopart.autopart

# update the selections in the ui
@@ -417,7 +417,8 @@ class StorageSpoke(NormalSpoke):
if storageThread:
storageThread.join()

- print self.data.ignoredisk.onlyuse
+ print self.data.clearpart.drives
+
self.disks = getDisks(self.storage.devicetree)

with gdk_threaded():
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-09-2012, 08:43 PM
David Lehman
 
Default Disk selection determines clearpart.drives, not ignoredisk.onlyuse.

Filtering is separate from target disk selection.
---
pyanaconda/ui/gui/spokes/storage.py | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 7e532a5..23b3b33 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -327,12 +327,12 @@ class StorageSpoke(NormalSpoke):
def __init__(self, *args, **kwargs):
NormalSpoke.__init__(self, *args, **kwargs)
self._ready = False
- self.selected_disks = self.data.ignoredisk.onlyuse[:]
+ self.selected_disks = self.data.clearpart.drives[:]
self.autopart = self.data.autopart.autopart
self.clearPartType = CLEARPART_TYPE_LINUX

def apply(self):
- self.data.ignoredisk.onlyuse = self.selected_disks[:]
+ self.data.clearpart.drives = self.selected_disks[:]
self.data.autopart.autopart = self.autopart
self.data.bootloader.location = "mbr"
self.data.clearpart.type = self.clearPartType
@@ -351,10 +351,10 @@ class StorageSpoke(NormalSpoke):
def status(self):
""" A short string describing the current status of storage setup. """
msg = _("No disks selected")
- if self.data.ignoredisk.onlyuse:
+ if self.data.clearpart.drives:
msg = P_(("%d disk selected"),
("%d disks selected"),
- len(self.data.ignoredisk.onlyuse)) % len(self.data.ignoredisk.onlyuse)
+ len(self.data.clearpart.drives)) % len(self.data.clearpart.drives)

if self.data.autopart.autopart:
msg = _("Automatic partitioning selected")
@@ -380,7 +380,7 @@ class StorageSpoke(NormalSpoke):

def refresh(self):
# synchronize our local data store with the global ksdata
- self.selected_disks = self.data.ignoredisk.onlyuse[:]
+ self.selected_disks = self.data.clearpart.drives[:]
self.autopart = self.data.autopart.autopart

# update the selections in the ui
@@ -417,7 +417,8 @@ class StorageSpoke(NormalSpoke):
if storageThread:
storageThread.join()

- print self.data.ignoredisk.onlyuse
+ print self.data.clearpart.drives
+
self.disks = getDisks(self.storage.devicetree)

with gdk_threaded():
--
1.7.7.6

_______________________________________________
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 10:27 PM.

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