summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings/qmf2/examples/python
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-02-04 08:22:30 +0000
committerTed Ross <tross@apache.org>2011-02-04 08:22:30 +0000
commit6b455d864349e7b90369fd424051210599fc9565 (patch)
treed2ee978f7f82a5338f773ee763eff7a86bf4af23 /qpid/cpp/bindings/qmf2/examples/python
parentab57937c2f608245bae1671e52620cd4daf96414 (diff)
downloadqpid-python-6b455d864349e7b90369fd424051210599fc9565.tar.gz
Added missing even handling in the console.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1067111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/examples/python')
-rw-r--r--qpid/cpp/bindings/qmf2/examples/python/find_agents.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/bindings/qmf2/examples/python/find_agents.py b/qpid/cpp/bindings/qmf2/examples/python/find_agents.py
index 15cc83649c..5fd71b3f1c 100644
--- a/qpid/cpp/bindings/qmf2/examples/python/find_agents.py
+++ b/qpid/cpp/bindings/qmf2/examples/python/find_agents.py
@@ -37,6 +37,9 @@ class FindAgents(qmf2.ConsoleHandler):
def agentSchemaUpdated(self, agent):
print "Agent Schema Updated: %r" % agent
+ def eventRaised(self, agent, data, timestamp, severity):
+ print "Event: data=%r time=%d sev=%d" % (data.getProperties(), timestamp, severity)
+
url = "localhost"