commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9457 - trunk/gnue-forms/src/GFObjects


From: reinhard
Subject: [gnue] r9457 - trunk/gnue-forms/src/GFObjects
Date: Sat, 31 Mar 2007 16:21:37 -0500 (CDT)

Author: reinhard
Date: 2007-03-31 16:21:37 -0500 (Sat, 31 Mar 2007)
New Revision: 9457

Modified:
   trunk/gnue-forms/src/GFObjects/GFButton.py
Log:
Don't look for action associated to a button while initializing, because in
might not yet be there if it is defined after the button in the GFD.


Modified: trunk/gnue-forms/src/GFObjects/GFButton.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFButton.py  2007-03-31 19:38:55 UTC (rev 
9456)
+++ trunk/gnue-forms/src/GFObjects/GFButton.py  2007-03-31 21:21:37 UTC (rev 
9457)
@@ -54,10 +54,7 @@
           'ON-NEXT-ENTRY'    : 'On-Next-Entry',
           'ON-PREVIOUS-ENTRY': 'On-Previous-Entry'}
 
-        #: L{gnue.common.logic.usercode.GAction} object linked to this button.
-        self.__action = None
 
-
     # -------------------------------------------------------------------------
     # Implementation of virtual methods
     # -------------------------------------------------------------------------
@@ -80,10 +77,7 @@
         self._rows = getattr(self, 'rows', self._rows)
         self._gap  = getattr(self, 'rowSpacer', self._gap)
 
-        if self.action is not None:
-            self.__action = self._form._actions[self.action]
 
-
     # -------------------------------------------------------------------------
     # Fire the trigger associated with the button from outside GF
     # -------------------------------------------------------------------------
@@ -102,7 +96,7 @@
             self.processTrigger('On-Action', False)
 
             # Fire the action
-            if self.__action is not None:
-                self.__action.run()
+            if self.action is not None:
+                self._form._actions[self.action].run()
         finally:
             self._form.event_end()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]