You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/10/27 16:25:57 UTC

svn commit: r1634575 - /qpid/proton/branches/examples/tutorial/proton_events.py

Author: gsim
Date: Mon Oct 27 15:25:57 2014
New Revision: 1634575

URL: http://svn.apache.org/r1634575
Log:
Fix to the way in which transactional state is sent on transfers and dispositions

Modified:
    qpid/proton/branches/examples/tutorial/proton_events.py

Modified: qpid/proton/branches/examples/tutorial/proton_events.py
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/tutorial/proton_events.py?rev=1634575&r1=1634574&r2=1634575&view=diff
==============================================================================
--- qpid/proton/branches/examples/tutorial/proton_events.py (original)
+++ qpid/proton/branches/examples/tutorial/proton_events.py Mon Oct 27 15:25:57 2014
@@ -148,14 +148,12 @@ class Acceptor:
 
     def __init__(self, events, loop, host, port):
         self.events = events
-        #self.selectables = selectables
         self.loop = loop
         self.socket = socket.socket()
         self.socket.setblocking(0)
         self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
         self.socket.bind((host, port))
         self.socket.listen(5)
-        #self.selectables.append(self)
         self.loop.add(self)
         self._closed = False
 
@@ -650,7 +648,7 @@ def delivery_tags():
 def send_msg(sender, msg, tag=None, handler=None, transaction=None):
     dlv = sender.delivery(tag or next(sender.tags))
     if transaction:
-        dlv.local.data = Described(symbol(u'amqp:transactional-state:list'), [transaction.id])
+        dlv.local.data = [transaction.id]
         dlv.update(0x34)
     if handler:
         dlv.context = handler
@@ -678,7 +676,7 @@ class TxHandler(OutgoingMessageHandler):
 
     def settle(self, delivery, transaction, state=None):
         if state:
-            delivery.local.data = Described(symbol(u'amqp:transactional-state:list'), [transaction.id, state])
+            delivery.local.data = [transaction.id, state]
             delivery.update(0x34)
         delivery.settle()
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org