summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-04-23 14:56:19 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-04-23 14:56:19 +0000
commit1a2ecea0adefb8be640859a8cbdaf230be81888f (patch)
treee9c3c47cfb543bedac47f2a9a079d868f74c3db1
parent98393622c592bf1d6f46032df08751034c312408 (diff)
downloadqpid-python-1a2ecea0adefb8be640859a8cbdaf230be81888f.tar.gz
qmf: python console - fix datestamps, add accessors for object name and agent
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937318 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--extras/qmf/src/py/qmf/console.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/extras/qmf/src/py/qmf/console.py b/extras/qmf/src/py/qmf/console.py
index 3a9b5e8aa6..96f26e205c 100644
--- a/extras/qmf/src/py/qmf/console.py
+++ b/extras/qmf/src/py/qmf/console.py
@@ -195,6 +195,18 @@ class Object(object):
else:
self._objectId = None
+ self._currentTime = omap.get("update_ts", 0)
+ self._createTime = omap.get("create_ts", 0)
+ self._deleteTime = omap.get("delete_ts", 0)
+
+ def getName(self):
+ """ Return this object's agent-unique name """
+ return self.getObjectId().objectName
+
+ def getAgent(self):
+ """ Return the agent from which this object was sent """
+ return self._agent
+
def getBroker(self):
""" Return the broker from which this object was sent """
return self._broker