[rhmessaging-commits] rhmessaging commits: r4168 - mgmt/newdata/mint/python/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Jul 29 15:03:35 EDT 2010


Author: justi9
Date: 2010-07-29 15:03:34 -0400 (Thu, 29 Jul 2010)
New Revision: 4168

Modified:
   mgmt/newdata/mint/python/mint/update.py
Log:
Change referent object resolution to account for cross-agent references

Modified: mgmt/newdata/mint/python/mint/update.py
===================================================================
--- mgmt/newdata/mint/python/mint/update.py	2010-07-29 18:29:31 UTC (rev 4167)
+++ mgmt/newdata/mint/python/mint/update.py	2010-07-29 19:03:34 UTC (rev 4168)
@@ -389,12 +389,16 @@
 
         if value:
             try:
+                agent = self.model.agents_by_id[value.agentName]
+            except KeyError:
+                raise MappingException("Agent %s is unknown" % value.agentName)
+
+            try:
                 that_id = str(value.objectName)
             except:
                 raise MappingException("Reference isn't an oid")
 
-            # XXX obviously won't work across agents
-            that = self.agent.get_object_by_id(that_id)
+            that = agent.get_object_by_id(that_id)
 
             if not that:
                 try:



More information about the rhmessaging-commits mailing list