Commit Graph

182 Commits

Author SHA1 Message Date
Tom Christie
a31a68d6cb yet more API cleanup 2011-05-12 15:14:22 +01:00
Tom Christie
b5b231a874 yet more API cleanup 2011-05-12 15:11:14 +01:00
Tom Christie
15f9e7c566 refactoring resource specfic stuff into ResourceMixin - validators now defunct 2011-05-12 12:55:13 +01:00
Tom Christie
4d12679675 More tests, getting new serialization into resource 2011-05-10 16:01:58 +01:00
Tom Christie
a2575c1191 Bits of cleanup 2011-05-10 12:59:13 +01:00
Tom Christie
cc4c9a9518 Bits of cleanup 2011-05-10 12:51:49 +01:00
Tom Christie
144d52c7b3 Rename resource to view in few remaining places in renderers (because that's what it now is) 2011-05-10 12:28:11 +01:00
Tom Christie
527e4ffdf7 renderer API work 2011-05-10 12:21:48 +01:00
Tom Christie
8f58ee489d Getting the API into shape 2011-05-10 10:49:28 +01:00
Tom Christie
d373b3a067 Decouple views and resources 2011-05-04 09:21:17 +01:00
Tom Christie
8756664e06 emitters -> renderers 2011-05-02 19:49:12 +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
93aa065fa9 emitters -> renderers 2011-04-28 19:54:30 +01:00
Tom Christie
5921e5c84e Fix up ModelResource issues 2011-04-27 18:53:54 +01:00
Tom Christie
5a59f339c1 Urg. Fixing broken merge 2011-04-27 18:44:21 +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
659898ffaf Inital pass at generic permissions, throttling etc. 2011-04-27 18:08:32 +01:00
Tom Christie
028851bfa1 Fix up tests and examples after refactoring 2011-04-27 18:07:28 +01:00
tom christie tom@tomchristie.com
b508ca38d4 CSRF validation will only be applied to POST requests, so let's only load .RAW_CONTENT in those cases 2011-04-26 21:08:36 +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
84a4fd3ea1 tidy up 2011-04-25 04:48:55 +01:00
Tom Christie
4692374e0d Generic permissions added, allowed_methods and anon_allowed_methods now defunct, dispatch now mirrors View.dispatch more nicely 2011-04-25 01:03:23 +01:00
Tom Christie
cb4b4f6be6 Remove some temporary debugging stuff 2011-04-11 17:18:03 +01:00
Tom Christie
18bbda84b9 depercate auth and content arguments to the request handler methods - yea :) 2011-04-11 17:13:11 +01:00
Tom Christie
6096b50dbe request.py -> mixins.py 2011-04-11 16:54:02 +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
a1ed565081 Cleanup 2011-04-11 15:09:52 +01:00
Tom Christie
29db0a60fb Even more validator tests passing after refactor 2011-04-11 15:06:29 +01:00
Tom Christie
a9df917d10 Lots of validator tests passing after refactor 2011-04-11 15:03:49 +01:00
Tom Christie
136c9b5271 Tweak 2011-04-11 13:52:16 +01:00
Tom Christie
cb9fb6ef2f Refactoring of authentication/permissions 2011-04-11 13:45:38 +01:00
Tom Christie
941742593c Remove last bits of ParserMixin 2011-04-11 13:22:54 +01:00
Tom Christie
92b5a455da Test cleanup 2011-04-11 13:14:51 +01:00
Tom Christie
dad1fa5798 method overloading tests passing 2011-04-11 13:13:25 +01:00
Tom Christie
0fe8d1a15d form overloading tests passing 2011-04-11 12:19:28 +01:00
Tom Christie
e29a3f4cf1 More tests passing 2011-04-11 11:56:07 +01:00
Tom Christie
d4ed178456 More tests passing 2011-04-11 11:54:26 +01:00
Tom Christie
338b5213fa More tests passing 2011-04-11 11:47:22 +01:00
Tom Christie
2fe0e58435 Start refactoring tests 2011-04-11 11:24:14 +01:00
Tom Christie
ec2a300a2b Start refactoring tests 2011-04-11 11:21:41 +01:00
Carmen Wick
bbab859ae1 Better error handling for Basic authentication. Catch exceptions that could be thrown due to malformed input 2011-04-04 18:40:18 -07:00
Carmen Wick
39c0c07786 Use cleaned_content instead of raw_content when generating a form instance for the DocumentingTemplateEmitter. This allows the form to be prepopulated with the resource's existing values. 2011-04-04 16:16:41 -07:00
Tom Christie
23d924eb9b Turn streaming request parsing back on for 1.3. Fix CSRF which was breaking it. It's really not at all obvious if we need to byte limit the stream that we hand over or not. 2011-04-04 09:23:14 +01:00
Tom Christie
5e2e2f1422 Turn streaming request parsing back on for 1.3. Fix CSRF which was breaking it. It's really not at all obvious if we need to byte limit the stream that we hand over or not. 2011-04-04 09:19:49 +01:00
tom christie tom@tomchristie.com
3cdb4e2648 Temporarily roll back the streaming stuff 2011-04-03 11:54:47 +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
tom christie tom@tomchristie.com
7566de1cae Only use xmlrunner if running under hudson 2011-03-30 20:33:36 +01:00
markotibold
fabf7c255d Coverage for all platforms working. Had some trouble with dependencies of coverage of python-dev for the various platforms. 2011-03-18 14:15:12 +01:00
tom christie tom@tomchristie.com
7856656df0 Add VERSION string 2011-03-17 08:51:26 +00:00
markotibold
5f2c53bf06 Test result graphing now possible for all 6 environments. Had to fix unittest-xml-reporting to work for both 1.2 and 1.3 to achieve this. The fix is reported to the owner of the project. 2011-03-17 01:02:34 +01:00
markotibold
e3011c1fb8 Implementing graphing. 2011-03-15 22:57:45 +01:00
Tom Christie
80e98de933 sebpiq's parser improvements 2011-03-13 17:15:50 +00:00
Tom Christie
0f0fd13d13 test refactoring 2011-03-13 17:13:18 +00:00
Tom Christie
bed7d8c3a9 tox, runcoverage, and setup.py test 2011-03-13 17:08:46 +00:00
sebpiq
ee74aec27c debug + tests for MultipartParser 2011-03-11 15:05:35 +02:00
sebpiq
d6c13a9e5c documentation + tests + debugging for formparsers 2011-03-11 14:34:39 +02:00
sebpiq
94199a4847 modified tests.__init__ so it also test module docstrings 2011-03-11 12:00:51 +02:00
sebpiq
b117f7bd45 added a test 2011-03-10 16:59:21 +02:00
sebpiq
2d8e4e056b documentation 2011-03-10 16:49:11 +02:00
sebpiq
26e10d0e3f removed useless stuff, request.POST and FILES not used + some doc 2011-03-10 16:03:46 +02:00
tom christie tom@tomchristie.com
d6e7e95d95 First pass at rolling the test running into the djangorestframework package 2011-03-10 08:58:34 +00:00
spiq
899233bf99 renamings + corrected a bug 2011-03-09 14:07:06 +02:00
spiq
d053cc892d corrected a small bug 2011-03-08 17:19:55 +02:00
spiq
2169c85dbb FomrParser now implements a work around for empty values in a list 2011-03-04 17:23:18 +02:00
spiq
033c0ae797 forms and multipat parsers now flaten data 2011-03-04 17:06:44 +02:00
spiq
91b33659b5 fix for PUT files 2011-03-04 12:28:20 +02:00
tom christie tom@tomchristie.com
30fd23d7f5 Revert unwanted checkin of models.py 2011-03-03 09:05:27 +00:00
tom christie tom@tomchristie.com
60206e5288 ./examples/modelresourceexample/models.py 2011-03-03 09:02:41 +00:00
tom christie tom@tomchristie.com
aad7eacce6 Ack. Use unicode not str in modelresource 2011-03-03 08:56:26 +00:00
tom christie tom@tomchristie.com
09a8b9627a Fix broken Vary header 2011-03-03 08:02:32 +00:00
tom christie tom@tomchristie.com
67c48f758f Fix kwargs in url conf to be more consistent, also fixes broken blog posts example (every blog post showed all comments) 2011-02-19 17:55:32 +00:00
tom christie tom@tomchristie.com
e4fff6ea6e Clean up the docs 2011-02-19 13:12:35 +00:00
tom christie tom@tomchristie.com
57b3a372f2 Move status codes into seperate module 2011-02-19 10:47:26 +00:00
tom christie tom@tomchristie.com
805aa03ec1 Yowzers. Final big bunch of refactoring for 0.1 release. Now support Django 1.3's views, admin style api is all polished off, loads of tests, new test project for running the test. All sorts of goodness. Getting ready to push this out now. 2011-02-19 10:26:27 +00:00
tom christie tom@tomchristie.com
b749b950a1 Added credits, fixed multipart forms and unicode output as per paul's bug reports. 2011-02-15 08:19:57 +00:00
tom christie tom@tomchristie.com
027ffed210 Refactor a bunch of stuff into mixins, more tests 2011-02-07 08:23:54 +00:00
tom christie tom@tomchristie.com
fcd7f414c4 Huge stack of refactoring getting stuff into Mixin classes, and loads of tests. Kickass. 2011-02-04 21:52:21 +00:00
tom christie tom@tomchristie.com
196c21f376 Browser UA tests passing 2011-02-01 21:16:34 +00:00
tom christie tom@tomchristie.com
e198165989 Tests for MSIE accept header munging 2011-02-01 21:05:49 +00:00
tom christie tom@tomchristie.com
42f2f9b40d Rename to django-rest-framework, get simpleexample working 2011-01-30 18:30:39 +00:00