Re: [Txamqp-user] content_type / content_encoding

2010-03-29 Thread Kurt Bonne
Hello Esteve,

Thanks for the clarification, using the correct fields for the correct
version did the trick!

Thanks for helping me out,

Kurt

On Mon, Mar 29, 2010 at 5:29 PM, Esteve Fernandez <
esteve.fernan...@gmail.com> wrote:

> Hi Kurt,
>
> what version of the AMQP spec are you using? With 0.8, the fields for
> those two properties are "content type" and "content encoding".
> Unfortunately, 0.8 and 0.9 are not compatible in this case, as the
> latter uses "content-type" and "content-encoding".
>
> In any case, you can set any of the standard properties using this syntax:
>
> content = Content()
> content["content type"] = "text/plain"
>
> if you want to set any custom header, you can use this instead:
>
> content = Content()
> content.headers["my header"] = "some value"
>
> let me know if this worked for you.
>
> Cheers.
>
> ___
> Mailing list: https://launchpad.net/~txamqp-user
> Post to : txamqp-user@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~txamqp-user
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~txamqp-user
Post to : txamqp-user@lists.launchpad.net
Unsubscribe : https://launchpad.net/~txamqp-user
More help   : https://help.launchpad.net/ListHelp


Re: [Txamqp-user] content_type / content_encoding

2010-03-29 Thread Esteve Fernandez
Hi Kurt,

what version of the AMQP spec are you using? With 0.8, the fields for
those two properties are "content type" and "content encoding".
Unfortunately, 0.8 and 0.9 are not compatible in this case, as the
latter uses "content-type" and "content-encoding".

In any case, you can set any of the standard properties using this syntax:

content = Content()
content["content type"] = "text/plain"

if you want to set any custom header, you can use this instead:

content = Content()
content.headers["my header"] = "some value"

let me know if this worked for you.

Cheers.

___
Mailing list: https://launchpad.net/~txamqp-user
Post to : txamqp-user@lists.launchpad.net
Unsubscribe : https://launchpad.net/~txamqp-user
More help   : https://help.launchpad.net/ListHelp


[Txamqp-user] content_type / content_encoding

2010-03-28 Thread Kurt Bonne
Is it possible to define content_type and content_encoding on a Content
object?

Thanks in advance.

Kurt
___
Mailing list: https://launchpad.net/~txamqp-user
Post to : txamqp-user@lists.launchpad.net
Unsubscribe : https://launchpad.net/~txamqp-user
More help   : https://help.launchpad.net/ListHelp