Author: reinhard
Date: 2006-05-24 06:59:53 -0500 (Wed, 24 May 2006)
New Revision: 8483

Modified:
   trunk/gnue-common/src/logic/usercode.py
Log:
Moved registration of actions to _buildObject so the action dictionary is
available in phase 1 init.


Modified: trunk/gnue-common/src/logic/usercode.py
===================================================================
--- trunk/gnue-common/src/logic/usercode.py     2006-05-24 11:45:06 UTC (rev 
8482)
+++ trunk/gnue-common/src/logic/usercode.py     2006-05-24 11:59:53 UTC (rev 
8483)
@@ -175,12 +175,22 @@
 
 
     # -------------------------------------------------------------------------
+    # Build object
+    # -------------------------------------------------------------------------
+
+    def _buildObject(self):
+
+        self._root._actions[self.name] = self
+
+        return UserCode._buildObject(self)
+
+
+    # -------------------------------------------------------------------------
     # Phase 1 initialization
     # -------------------------------------------------------------------------
 
     def __initialize(self):
 
-        self._root._actions[self.name] = self
         self.compile([])
 
 



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to