[rhmessaging-commits] rhmessaging commits: r1616 - mgmt/mint/python/mint.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Mon Jan 28 11:00:39 EST 2008
Author: nunofsantos
Date: 2008-01-28 11:00:39 -0500 (Mon, 28 Jan 2008)
New Revision: 1616
Modified:
mgmt/mint/python/mint/__init__.py
mgmt/mint/python/mint/schemaparser.py
Log:
simplifying arg list to broker method calls
Modified: mgmt/mint/python/mint/__init__.py
===================================================================
--- mgmt/mint/python/mint/__init__.py 2008-01-27 20:09:44 UTC (rev 1615)
+++ mgmt/mint/python/mint/__init__.py 2008-01-28 16:00:39 UTC (rev 1616)
@@ -243,12 +243,6 @@
return label
- def getConnectedBroker(self, label):
- if (label in self.connectedBrokers):
- return self.connectedBrokers[label].managedBroker
- else:
- return None
-
def registerCallback(self, callback):
self.currentMethodId += 1
methodId = self.currentMethodId
Modified: mgmt/mint/python/mint/schemaparser.py
===================================================================
--- mgmt/mint/python/mint/schemaparser.py 2008-01-27 20:09:44 UTC (rev 1615)
+++ mgmt/mint/python/mint/schemaparser.py 2008-01-28 16:00:39 UTC (rev 1616)
@@ -113,11 +113,11 @@
formalArgs = formalArgs[:-2]
else:
formalArgs = ""
- self.pythonOutput += "\n def %s(self, model, managedBrokerLabel, callbackMethod%s):\n" % (elem["@name"], formalArgs)
+ self.pythonOutput += "\n def %s(self, model, managedBroker, callbackMethod%s):\n" % (elem["@name"], formalArgs)
self.pythonOutput += comment
self.pythonOutput += actualArgs
self.pythonOutput += " methodId = model.registerCallback(callbackMethod)\n"
- self.pythonOutput += " model.getConnectedBroker(managedBrokerLabel).method(methodId, self.idOriginal, \\\n"
+ self.pythonOutput += " model.managedBroker.method(methodId, self.idOriginal, \\\n"
self.pythonOutput += " classToSchemaNameMap[self.__class__.__name__], \"%s\", " % (elem["@name"])
self.pythonOutput += "args=actualArgs, packageName=\"qpid\")\n"
More information about the rhmessaging-commits
mailing list