Commit Graph

3773 Commits

Author SHA1 Message Date
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
ad552107ff Spelling fix 2011-04-28 17:49:02 +01:00
markotibold
032cb79592 fix tiny spelling errors 2011-04-27 22:28:08 +02: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
1e1c4f85fc Pulling marko's test fixes 2011-04-27 18:29:12 +01:00
Tom Christie
fb805bbb7c Pulling Marko's test fixes 2011-04-27 18:28:20 +01:00
Tom Christie
cc004dbca1 merge 157 2011-04-27 18:26:13 +01:00
Tom Christie
683a862ddf Docs impovement 2011-04-27 18:25:11 +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
markotibold
116a9ee824 Stole some code from djangorestframework/runtests/runcoverage.py so that coverage is also implemented for the examples. Because Jenkins looks for a coverage.xml file for all defeined projects in tox.ini we need it to pass the tests. 2011-04-27 15:07:25 +02:00
markotibold
391560e69c The test was bad. It expected 11 snippets while the view made sure (as designed) that there would not be more than 10 snippets stored on disk. 2011-04-27 14:29:59 +02:00
markotibold
31bfdbeb1a reverse on a a sorted list which was laerady reversed is rather pointless :) 2011-04-27 14:28:48 +02:00
markotibold
a880bf460a Danielfm packaged the 1.2 release so we can now install it from his repo. 2011-04-27 13:47:46 +02:00
markotibold
9473d17dd6 Omitting all the superfluous tests. Later on we might want a nicer way to specify which apps to test, because they are now hardcoded in runtests.py. (Listdir doesn't do the trick, tried that already :-) ) 2011-04-27 13:40:46 +02: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
da7d49a384 tox can now use django 1.3 rather than 1.3-rc1. Huzzah. 2011-04-26 20:40:39 +01:00
tom christie tom@tomchristie.com
bdf4fef8b6 simplejson no longer a requirement for python 2.5 (uses django's built in simplejson lib) 2011-04-26 20:37:15 +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
tom christie tom@tomchristie.com
d0fe36aaa4 Thanks Carmen \! 2011-04-08 07:29:43 +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