Author: eallen
Date: 2010-05-25 12:41:40 -0400 (Tue, 25 May 2010)
New Revision: 3986
Modified:
mgmt/newdata/cumin/python/cumin/model.py
Log:
Reuse the qmf broker's session for qmf calls
Modified: mgmt/newdata/cumin/python/cumin/model.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/model.py 2010-05-25 14:05:53 UTC (rev 3985)
+++ mgmt/newdata/cumin/python/cumin/model.py 2010-05-25 16:41:40 UTC (rev 3986)
@@ -62,12 +62,8 @@
return self.app.main_page.main.show(session)
def get_session_by_object(self, object):
- assert object
+ return self.app.session.qmf_brokers[0].getAmqpSession()
- agent = self.mint.model.agents[object._qmf_agent_id]
-
- return agent.qmf_agent.getBroker().getAmqpSession()
-
def get_negotiator_limits(self, negotiator):
assert negotiator
Show replies by date