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 > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 01-16-2012, 11:45 AM
Vratislav Podzimek
 
Default only StandaloneSpokes have the register_event_cb method

---
pyanaconda/ui/gui/tools/run-spoke.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/tools/run-spoke.py b/pyanaconda/ui/gui/tools/run-spoke.py
index 5247163..d635957 100755
--- a/pyanaconda/ui/gui/tools/run-spoke.py
+++ b/pyanaconda/ui/gui/tools/run-spoke.py
@@ -39,8 +39,9 @@ if not spokeClass:
sys.exit(1)

spoke = spokeClass(ksdata, devicetree, instclass)
-spoke.register_event_cb("continue", lambda: Gtk.main_quit())
-spoke.register_event_cb("quit", lambda: Gtk.main_quit())
+if hasattr(spoke, "register_event_cb"):
+ spoke.register_event_cb("continue", lambda: Gtk.main_quit())
+ spoke.register_event_cb("quit", lambda: Gtk.main_quit())
spoke.populate()

if not spoke.showable:
--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-16-2012, 11:50 AM
Radek Vykydal
 
Default only StandaloneSpokes have the register_event_cb method

Ack

On 01/16/2012 01:45 PM, Vratislav Podzimek wrote:

---
pyanaconda/ui/gui/tools/run-spoke.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/tools/run-spoke.py b/pyanaconda/ui/gui/tools/run-spoke.py
index 5247163..d635957 100755
--- a/pyanaconda/ui/gui/tools/run-spoke.py
+++ b/pyanaconda/ui/gui/tools/run-spoke.py
@@ -39,8 +39,9 @@ if not spokeClass:
sys.exit(1)

spoke = spokeClass(ksdata, devicetree, instclass)
-spoke.register_event_cb("continue", lambda: Gtk.main_quit())
-spoke.register_event_cb("quit", lambda: Gtk.main_quit())
+if hasattr(spoke, "register_event_cb"):
+ spoke.register_event_cb("continue", lambda: Gtk.main_quit())
+ spoke.register_event_cb("quit", lambda: Gtk.main_quit())
spoke.populate()

if not spoke.showable:


_______________________________________________
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 12:34 PM.

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