qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Sim (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (QPID-5104) Python Swig bindings do not expose Message properties in the same manner as the pure Python bindings
Date Fri, 06 Sep 2013 07:59:51 GMT

     [ https://issues.apache.org/jira/browse/QPID-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gordon Sim resolved QPID-5104.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.25
    
> Python Swig bindings do not expose Message properties in the same manner as the pure
Python bindings
> ----------------------------------------------------------------------------------------------------
>
>                 Key: QPID-5104
>                 URL: https://issues.apache.org/jira/browse/QPID-5104
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.22
>            Reporter: Darryl L. Pierce
>            Assignee: Gordon Sim
>             Fix For: 0.25
>
>
> With the pure Python bindings, message properties can be assigned using:
> In [3]: msg.properties
> Out[3]: {}
> In [4]: msg.properties["foo"] = "bar"
> In [5]: msg.properties
> Out[5]: {'foo': 'bar'}
> However, in the Swig python bindings this results in the property never being set. This
is because the call to properties appears to be calling the underlying C++ code and returning
a _copy_ of the properties map:
> In [3]: msg.properties
> Out[3]: {}
> In [4]: msg.properties["foo"] = "bar"
> In [5]: msg.properties
> Out[5]: {}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message