Commit Graph

63 Commits

Author SHA1 Message Date
Tom Christie
ecd3733c5e Added serializers and fields 2012-08-28 15:46:38 +01:00
Tom Christie
26831df88e Add ParseError (Removing ImmediateResponse) 2012-08-25 13:27:55 +01:00
Tom Christie
44df8345f3 Merge with master 2012-04-11 15:28:57 +01:00
Tom Christie
1cde31c86d Massive merge 2012-02-25 18:45:17 +00:00
Tom Christie
8e0b9e55ec Properly catch MultiPartParserError during .parse() 2012-02-22 13:09:09 +00:00
Can Yavuz
44b56ed059 let the XML parser fail gracefully on malformed XML 2012-02-22 11:17:37 +01:00
Tom Christie
9277f438cb Fix YAML parser bug 2012-02-21 22:09:05 +00:00
Sébastien Piquemal
db0b01037a made suggested fixes 2012-02-10 10:18:39 +02:00
Sébastien Piquemal
21292d31e7 cleaned Request/Response/mixins to have similar interface 2012-02-07 15:38:54 +02:00
Sébastien Piquemal
ca96b4523b cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 2012-02-07 13:15:30 +02:00
Sébastien Piquemal
5bb6301b7f Response as a subclass of HttpResponse - first draft, not quite there yet. 2012-02-02 18:19:44 +02:00
Sébastien Piquemal
ab0b72a7c1 .DATA, .FILES, overloaded HTTP method, content type and content available directly on the request - see #128 2012-01-22 21:28:34 +02:00
Tom Christie
dea4a45ec7 pep8/pyflakes cleanup 2012-01-21 18:33:34 +00:00
Ben Timby
0a5ca000ed Docstring/whitespace fixes. 2012-01-18 22:59:30 -05:00
Michele Lazzeri
2966c34352 correct complex data xml parsing 2012-01-12 13:28:32 +01:00
Michele Lazzeri
6b3792aef2 recursive xml parsing 2012-01-11 19:37:43 +01:00
Michele Lazzeri
1664bc7b91 recursive xml parsing 2012-01-11 19:36:43 +01:00
Michele Lazzeri
27d22cff6c Revert "update author"
This reverts commit f461acbaf2.
2012-01-11 19:34:08 +01:00
Michele Lazzeri
ab83a2faae recursive xml parsing 2012-01-11 19:31:08 +01:00
Michele Lazzeri
ad7d921e86 Revert "update author"
This reverts commit f461acbaf2.
2012-01-11 19:29:48 +01:00
Michele Lazzeri
f461acbaf2 update author 2012-01-11 18:58:43 +01:00
Tom Christie
c8134a6340 Replace tab with spaces. 2012-01-11 13:44:11 +00:00
Tom Christie
07349597ab whitespace fixes 2011-12-29 13:31:12 +00:00
Craig Blaszczyk
0632e946f9 add xml parser 2011-12-11 18:27:40 +00:00
Tom Christie
2dc042f0cf Picky. :) 2011-07-02 10:37:51 -07:00
Jens Alm
3e0a978dd9 Fixed YAMLParser = None 2011-07-02 19:19:45 +02:00
Jens Alm
20c7e605c9 Sloppy copy-pasting... 2011-07-02 19:12:43 +02:00
Jens Alm
f73588eb42 parsers.DEFAULT_PARSERS added to be consistent with renderers.DEFAULT_RENDERERS 2011-07-02 19:03:26 +02:00
Tom Christie
f7b7778a79 pull in markos changes, minor tweaks to yaml stuff 2011-07-01 17:44:08 +01:00
Andrew Straw
f6e4578656 return 400 BAD REQUEST rather than Django traceback/500 error on failed multipart parse 2011-06-29 23:02:00 +02:00
markotibold
7f536c1db3 Very basic YAML support. Probably needs some tweaking, and definitely needs tests. 2011-06-26 01:34:52 +02:00
Alen Mujezinovic
d034c0fe4f Removed unused imports 2011-06-09 16:27:45 +01:00
Alen Mujezinovic
a848923a39 Returning the dict from parse_qs in FormParser fails on forms.
Use `QueryDict` instead to return a value that is compatible with forms.
2011-06-09 16:24:27 +01:00
Tom Christie
ce6e5fdc01 Renderers can now cope with parameterised args. ResponseMixin gets cleaned up & added Renderer.can_handle_response(), mirroring Parsers.can_handle_request() 2011-05-24 13:29:30 +01:00
Tom Christie
e7f8c06dbb Merge in marko's doc markup 2011-05-19 08:49:57 +01:00
Tom Christie
8c3280f9c0 data flattening needs to go into resource 2011-05-19 08:36:55 +01:00
markotibold
92c015e049 Most of the actual work so far has been markup really. 2011-05-18 22:13:48 +02:00
Tom Christie
8f6bcac7f3 cleanup 2011-05-13 09:59:36 +01:00
Tom Christie
15f9e7c566 refactoring resource specfic stuff into ResourceMixin - validators now defunct 2011-05-12 12:55:13 +01:00
Tom Christie
8f58ee489d Getting the API into shape 2011-05-10 10:49:28 +01:00
Tom Christie
b358fbdbe9 More refactoring - move various less core stuff into utils etc 2011-04-29 14:32:56 +01:00
Tom Christie
b18302586c Urg. Fix broken merging. 2011-04-27 18:36:43 +01:00
Tom Christie
da60f68f50 Merge previous checkins 2011-04-27 18:20:29 +01:00
tom christie tom@tomchristie.com
3d15adaeb1 Fixes #35 - Import json from django's built-in package (Does cleverness in determing best lib to use) 2011-04-26 20:20:31 +01:00
Tom Christie
762a52edde Fix some compat issues with json/simplejson 2011-04-25 04:50:28 +01:00
Tom Christie
349ffcaf5f Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 2011-04-11 16:38:00 +01:00
Tom Christie
941742593c Remove last bits of ParserMixin 2011-04-11 13:22:54 +01:00
Tom Christie
d4ed178456 More tests passing 2011-04-11 11:54:26 +01:00
tom christie tom@tomchristie.com
4687db680c Refactor to use self.CONTENT to access request body. Get file upload working 2011-04-02 16:32:37 +01:00
sebpiq
ee74aec27c debug + tests for MultipartParser 2011-03-11 15:05:35 +02:00