[PATCHSET] Add support for json.

Sett 75 ganger
Hopp til første uleste melding

Dylan Smith

ulest,
21. apr. 2012, 22:24:3021.04.2012
til pyactiveresource
The simplejson package is needed to get it to work with python 2.5.  Later versions of python include the json module.  Without these modules XML support will continue to work, and it remains the default format.

I tried to keep the implementation consistent with the ruby ActiveResource, even though I find it strange that self.klass.format.encode isn't used by ActiveResource.encode.
0001-Implement-ActiveResource.encode-to-avoid-using-to_xm.patch
0002-Consistently-use-format-rather-than-_format-in-Activ.patch
0003-Add-JSON-support.patch

Dylan Smith

ulest,
22. apr. 2012, 13:53:3522.04.2012
til pyactiveresource
The attached patch implements the parsing of JSON error responses which was missing in the original patchset.
0004-Handle-errors-for-json-format.patch

Dylan Smith

ulest,
20. mai 2012, 02:56:4820.05.2012
til pyactiveresource
Any feedback for this patchset?

Luke Petre

ulest,
7. jan. 2013, 07:38:3307.01.2013
til pyactive...@googlegroups.com
+1 on this patch set. Any chance this can get integrated, please?

On Sunday, May 20, 2012 7:56:48 AM UTC+1, Dylan Smith wrote:
Any feedback for this patchset?
Svar alle
Svar til forfatter
Videresend
0 nye meldinger