[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5051 - trunk/gnue-common/src/logic
From: |
jcater |
Subject: |
r5051 - trunk/gnue-common/src/logic |
Date: |
Thu, 29 Jan 2004 12:50:24 -0600 (CST) |
Author: jcater
Date: 2004-01-29 12:50:23 -0600 (Thu, 29 Jan 2004)
New Revision: 5051
Modified:
trunk/gnue-common/src/logic/NamespaceCore.py
Log:
added support for repr() to namespaceelements, so I can debug the darn things
Modified: trunk/gnue-common/src/logic/NamespaceCore.py
===================================================================
--- trunk/gnue-common/src/logic/NamespaceCore.py 2004-01-29 18:31:22 UTC
(rev 5050)
+++ trunk/gnue-common/src/logic/NamespaceCore.py 2004-01-29 18:50:23 UTC
(rev 5051)
@@ -65,7 +65,6 @@
else:
GDebug.printMesg(0,'GObjNamespace was passed an empty object tree')
-
#
# constructTriggerObject
#
@@ -142,12 +141,23 @@
class NamespaceElement(GObj):
def __init__(self, parent):
GObj.__init__(self,parent)
+ self._parent = parent
self._triggerProperties = NamespaceElementProperties()
self._triggerSet = None
self._triggerGet = None
self._object = None
#
+ #
+ #
+ def __repr__(self):
+ try:
+ return "NamespaceElement(%s) at %s" % (self._object.__class__, id(self))
+ except:
+ return "NamespaceElement at %s" % (id(self))
+
+
+ #
# showTree
#
# Handy function to dump a rough look at the namespace
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5051 - trunk/gnue-common/src/logic,
jcater <=