[Fwd: Re: [Repoze-dev] obob example...]

Chris McDonough chrism at plope.com
Wed Sep 12 01:55:29 UTC 2007


For XML-RPC that happens as a result of the request having the  
following properties:

- It's a POST request.
- It has a content-type of 'text/xml'
- Its body isn't a multipart/form-encoded body.

In that case the body is intercepted as an XML-RPC request.

A similar scheme could be tailored to return a json serialization.

Is there some convention in the wider world that a request uses to  
signify that it wants JSON data back?

- C




On Sep 11, 2007, at 9:28 PM, Mike Naberezny wrote:

> (cc'ed from wrong list, argh.)
>
> Chris McDonough wrote:
>> obob will call str() against an object returned or may call some  
>> other method on an object returned to it if it "implements some  
>> interface" (yet to be decided).
>
> If the request wants JSON back, where does that marshaling occur?   
> As I
> understand it currently, the object exposed by obob would have to  
> return its
> own JSON representation.
>
> Mike
>
> -- 
> Mike Naberezny
> Maintainable Software
> http://maintainable.com
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev at lists.repoze.org
> http://lists.repoze.org/mailman/listinfo/repoze-dev
>

_______________________________________________
Repoze-dev mailing list
Repoze-dev at lists.repoze.org
http://lists.repoze.org/mailman/listinfo/repoze-dev



More information about the Repoze-dev mailing list