[PATCH 2/2] _actions should be set up in the __init__ method.

Chris Lumens clumens at redhat.com
Wed Aug 22 17:56:11 UTC 2012


This prevents a traceback from happening when handling tracebacks.
---
 pyanaconda/ui/gui/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
index 371496c..e07d4e9 100644
--- a/pyanaconda/ui/gui/__init__.py
+++ b/pyanaconda/ui/gui/__init__.py
@@ -41,6 +41,7 @@ class GraphicalUserInterface(UserInterface):
     def __init__(self, storage, payload, instclass):
         UserInterface.__init__(self, storage, payload, instclass)
 
+        self._actions = []
         self._hubs = []
         self._ui = None
 
@@ -63,7 +64,6 @@ class GraphicalUserInterface(UserInterface):
         # Instantiate all hubs and their pre/post standalone spokes, passing
         # the arguments defining our spoke API and setting up continue/quit
         # signal handlers.
-        self._actions = []
         for klass in actionClasses:
             obj = klass(data, self.storage, self.payload, self.instclass)
 
-- 
1.7.11.2



More information about the anaconda-patches mailing list