On 09/19/2013 06:26 PM, Darryl L. Pierce wrote:
On Thu, Sep 19, 2013 at 10:52:29AM +0100, Gordon Sim wrote:
On 09/18/2013 09:20 PM, [email protected] wrote:
Author: mcpierce
Date: Wed Sep 18 20:20:16 2013
New Revision: 1524554
URL: http://svn.apache.org/r1524554
Log:
QPID-5140: Add get/set methods to MessageProperties
Also set MessageProperties instance as the properties value on the
owning Message object.
[...]
Modified: qpid/trunk/qpid/cpp/bindings/qpid/python/python.i
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/python/python.i?rev=1524554&r1=1524553&r2=1524554&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/python/python.i (original)
+++ qpid/trunk/qpid/cpp/bindings/qpid/python/python.i Wed Sep 18 20:20:16 2013
@@ -313,6 +313,7 @@ QPID_EXCEPTION(UnauthorizedAccess, Sessi
def __init__(self, msg):
self.msg = msg
self.properties = self.msg.getProperties()
+ msg.properties = self
Can you explain the purpose of the line above?
When running the server app, it blew up on the msg.properties.get saying
NoneType had no attribute named get.
I suspect that must have been caused by something else as I don't see
how this line could possibly fix that.
The MessageProperties instance is created in response to the first
attempt to access a Message instance's 'properties' property. The
Message instance create a MessageProperties object and assigns it to
it's _msg_props member (i.e caching it for future accesses).
Can you retry the server example without that line? It seems to work
fine for me.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]