-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Looks good. I'm done! On Wed, 16 Sep 2009, Joel Granados Moreno wrote:
* iw/partition_gui.py (__init__, _createStripe): Handle the initialization of self.tree and self.editCB in the child clases. --- iw/partition_gui.py | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/iw/partition_gui.py b/iw/partition_gui.py index ce85672..fae7649 100644 --- a/iw/partition_gui.py +++ b/iw/partition_gui.py @@ -259,10 +259,8 @@ class StripeGraph: """ This class will only handle one stripe.""" __canvas = None - def __init__(self, tree, editCB): + def __init__(self): self.stripe = None - self.tree = tree - self.editCB = editCB self.next_ypos = 0.0 def __del__(self): @@ -320,8 +318,10 @@ class StripeGraph: class DiskStripeGraph(StripeGraph): def __init__(self, tree, editCB, storage, drive = None): - StripeGraph.__init__(self, tree, editCB) + StripeGraph.__init__(self) self.storage = storage + self.tree = tree + self.editCB = editCB # Define the default colors per partition type. self.part_type_colors = \ {"sel_logical": "cornsilk1", "unsel_logical": "white", @@ -431,8 +431,10 @@ class DiskStripeGraph(StripeGraph): class LVMStripeGraph(StripeGraph): def __init__(self, tree, editCB, storage, vg = None): - StripeGraph.__init__(self, tree, editCB) + StripeGraph.__init__(self) self.storage = storage + self.tree = tree + self.editCB = editCB # Define the default colors per partition type. self.part_type_colors = \ {"sel_lv": "cornsilk1", "unsel_lv": "white", @@ -492,8 +494,10 @@ class LVMStripeGraph(StripeGraph): class MDRaidArrayStripeGraph(StripeGraph): def __init__(self, tree, editCB, storage, md = None): - StripeGraph.__init__(self, tree, editCB) + StripeGraph.__init__(self) self.storage = storage + self.tree = tree + self.editCB = editCB self.part_type_colors = \ {"sel_md": "cornsilk1", "unsel_md": "white"} if md: @@ -521,7 +525,6 @@ class MDRaidArrayStripeGraph(StripeGraph): return stripe - class DiskTreeModelHelper: def __init__(self, model, columns, iter): self.model = model @@ -1697,7 +1700,7 @@ class PartitionWindow(InstallWindow): self.treeView.connect('row-activated', self.treeActivateCB) self.treeViewSelection = self.treeView.get_selection() self.treeViewSelection.connect("changed", self.treeSelectCB) - self.stripeGraph = StripeGraph(self.tree, self.editCB) + self.stripeGraph = StripeGraph() self.populate(initial = 1) # Create the top scroll window
- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkq9W+gACgkQ5hsjjIy1VkldaQCeKiAvqwju9VLgAxM7JoNh1Psy uS8AoM6EKkuU6PCHQeo1xql4olLSaHQV =W9E+ -----END PGP SIGNATURE----- _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list