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 03-04-2009, 03:19 AM
David Cantrell
 
Default Handle instances where migrate is not possible.

If we're dealing with a non-migratable filesystem, othercb and
othercombo will be None here.
---
iw/partition_ui_helpers_gui.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 4179ab9..87d816f 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -252,8 +252,12 @@ def formatOptionResizeCB(widget, resizesb):
def formatMigrateOptionCB(widget, data):
(combowidget, mntptcombo, ofstype, lukscb, othercombo, othercb) = data
combowidget.set_sensitive(widget.get_active())
- othercb.set_sensitive(not widget.get_active())
- othercombo.set_sensitive(not widget.get_active())
+
+ if othercb is not None:
+ othercb.set_sensitive(not widget.get_active())
+
+ if othercombo is not None:
+ othercombo.set_sensitive(not widget.get_active())

if lukscb is not None:
lukscb.set_data("formatstate", widget.get_active())
--
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-04-2009, 03:57 AM
David Lehman
 
Default Handle instances where migrate is not possible.

Ack.

On Tue, 2009-03-03 at 18:19 -1000, David Cantrell wrote:
> If we're dealing with a non-migratable filesystem, othercb and
> othercombo will be None here.
> ---
> iw/partition_ui_helpers_gui.py | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
> index 4179ab9..87d816f 100644
> --- a/iw/partition_ui_helpers_gui.py
> +++ b/iw/partition_ui_helpers_gui.py
> @@ -252,8 +252,12 @@ def formatOptionResizeCB(widget, resizesb):
> def formatMigrateOptionCB(widget, data):
> (combowidget, mntptcombo, ofstype, lukscb, othercombo, othercb) = data
> combowidget.set_sensitive(widget.get_active())
> - othercb.set_sensitive(not widget.get_active())
> - othercombo.set_sensitive(not widget.get_active())
> +
> + if othercb is not None:
> + othercb.set_sensitive(not widget.get_active())
> +
> + if othercombo is not None:
> + othercombo.set_sensitive(not widget.get_active())
>
> if lukscb is not None:
> lukscb.set_data("formatstate", widget.get_active())

_______________________________________________
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 11:22 PM.

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