Hi,
On Wed, Feb 8, 2012 at 4:35 AM, Andrew Colin Kissa <[email protected]> wrote:
>
> On 08 Feb 2012, at 2:37 AM, Mikael Syska wrote:
>
>> The two json strings are almost the same, but the args are packed
>> differently. But should however be valid.
>
> Take a closer look at the formatting args* is any array
> https://github.com/akissa/baruwa/blob/master/src/baruwa/messages/tasks.py#L58
>
> Your json is not sending it in as an array but as a plain hash, the hash
> needs to be in an array.
Now I see the point. Guess I was confused by your first message and
could not see how it would make any sense to make the Args an array.
But now I see ... I could actually so the user could both select
spam/ham in the same task. Havent considered that last time and I
guess thats why I just used a property, instead of an array. Seems to
work now. Thanks.
>
> args:[{"use_alt":false,.....}]
>
> - Andrew
>
> --
> www.baruwa.org
>
>
>
> _______________________________________________
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
mvh
Mikael Syska
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056