qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Pierce (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5140) Python swig bindings - Message.properties missing get/set methods
Date Mon, 16 Sep 2013 17:00:57 GMT

    [ https://issues.apache.org/jira/browse/QPID-5140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13768490#comment-13768490
] 

Darryl L. Pierce commented on QPID-5140:
----------------------------------------

Sure. In the $REPO/qpid/python/examples/api/server code, there's the line:

b2524e16 (Rafael H. Schloming 2009-10-11 20:39:01 +0000  62)   msg_type = msg.properties.get("type")

which fails since there's no properties field on the Message class. If MessageProperties were,
in its constructor, to assign itself to its parent Message object as that property, the code
would then only need to expose the get (and also set) method to do what the pure python code
do.
                
> Python swig bindings - Message.properties missing get/set methods
> -----------------------------------------------------------------
>
>                 Key: QPID-5140
>                 URL: https://issues.apache.org/jira/browse/QPID-5140
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>            Reporter: Darryl L. Pierce
>            Assignee: Darryl L. Pierce
>             Fix For: 0.24
>
>
> The bindings have a special wrapper class named MessageProperties. The Python examples
attempt to access this field as OBJECT.properties in order to invoke the get and set methods
on what is expected to be a dict.
> It should set the field on a message instance, and also add the set and get methods so
they can be accessed directly.

--
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