[Twisted-web] CorePost 0.0.7 - all about content types
jacek99 at gmail.com
Fri Sep 30 09:08:02 EDT 2011
Depends. pyaml is very forgiving in terms of what you feed to it, but
json.dumps() only really seems to
accept list/dict without complaining.
I will keep refining this. One shortcoming is that it does not serialize
Python classes (json.dumps() says they're not JSON serializable).
I will probably need to write a custom marshaller that uses a class's
__dict__ to convert it to a dict (including traversing the whole
XML does not work either yet, could not find a library that does
dict/list/class conversion to XML. Will need to write one myself too.
But all the underlying plumbing in terms of content routing is there.
Once I am done with all of this I will have a serious look at AMPoule to get
that out-of-the-box multi-core support.
So the next release 0.0.8 should finish all the content type stuff and then
for 0.0.9 should start looking at AMPoule.
On Thu, Sep 29, 2011 at 11:22 PM, Glyph Lefkowitz
<glyph at twistedmatrix.com>wrote:
> On Sep 29, 2011, at 5:49 PM, Jacek Furmankiewicz wrote:
> CorePost 0.0.7, the REST microframework built on top of twisted.web is out.
> Congrats on another quick release, Jacek!
> It seems like your first example doesn't really need the 'dumps' calls -
> your other features will automatically serialize those objects, right?
> I love the automatic MIME-type negotiation on output. Very cool.
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-web