Guys, is there any doc/reference about the api in Python? for now I am just
looking into the code and test cases, and try to guess and find method! and
the code is hard to follow.
couldnt find any doc about the Python api?

Thanks,
Siamak

On Thu, Mar 4, 2010 at 11:33 AM, Siamak Kolahi <[email protected]>wrote:

> Thanks alot Sam and Gordon, and yes Gordon. thats exactly where the problem
> is. the empty() condition does not seem to be working for values comming
> over wire from Python. I am not sure what it is translated to over the wire,
> but from Python side, None makes the most sense to be used for that purpose,
> and it currently does not seem to be working.
>
> Thanks for the Jira issue and I would appreciate if you let me know
> whenever its nailed down.
>
> Thanks,
> Siamak
>
>
> On Thu, Mar 4, 2010 at 7:13 AM, Gordon Sim <[email protected]> wrote:
>
>> On 03/04/2010 11:46 AM, Sam Joyce wrote:
>>
>>> Hi Siamak,
>>>
>>> I've had a look in the Headers Exchange code and traced through the
>>> match() code. I've drilled down to the FieldValue impl, which is
>>> ultimately where it decides on a match (the operator==() method),
>>> someone else please jump in here but what I'm seeing is no support for
>>> wild-carding on header values.
>>>
>>
>> There is, but I think it is broken. HeadersExchange.cpp:255 defines
>> match_values and if the binding specified a key with an empty value, that
>> will match any value. I believe empty() is the wrong test and will never be
>> true for a map decoded off the wire.
>>
>> Setting the value to None in python when binding is the correct approach.
>>
>> I've raised a Jira for this (
>> https://issues.apache.org/jira/browse/QPID-2429) and we'll get it fixed
>> shortly. Thanks for pointing that out!
>>
>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:[email protected]
>>
>>
>

Reply via email to