[rhmessaging-commits] rhmessaging commits: r2223 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Jul 25 15:34:31 EDT 2008


Author: eallen
Date: 2008-07-25 15:34:31 -0400 (Fri, 25 Jul 2008)
New Revision: 2223

Modified:
   mgmt/trunk/cumin/python/cumin/parameters.py
Log:
Added PeerParameter class

Modified: mgmt/trunk/cumin/python/cumin/parameters.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/parameters.py	2008-07-25 19:33:12 UTC (rev 2222)
+++ mgmt/trunk/cumin/python/cumin/parameters.py	2008-07-25 19:34:31 UTC (rev 2223)
@@ -65,6 +65,13 @@
     def do_marshal(self, exchange):
         return str(exchange.id)
 
+class PeerParameter(Parameter):
+    def do_unmarshal(self, string):
+        return Link.get(int(string))
+
+    def do_marshal(self, peer):
+        return str(peer.id)
+
 class QueueParameter(Parameter):
     def do_unmarshal(self, string):
         return Queue.get(int(string))




More information about the rhmessaging-commits mailing list