Commit Graph

37 Commits

Author SHA1 Message Date
Sean C. Farley
b5f986abdd Avoid unbound form for GET instance
Do not attempt to get an unbound form for an instance using a GET
method.  This results in the same issue as getting a generic form where
an explicit form must be provided for an instance obtained using the GET
method.
2012-04-18 12:50:31 -04:00
Sean C. Farley
580031a914 Add GET method form handling
Add handling of forms for the GET method.  The code requires the form for
the GET method to be explicitly declared (e.g., get_form = AGetForm); the
form attribute will only be used for POST and PUT but not GET.
2012-04-18 12:50:20 -04:00
Tom Christie
66eabe8bd1 Remove staticviews. Use standard login/logout 2012-02-21 22:50:41 +00:00
Tom Christie
b074754b54 Remove ADMIN_MEDIA_PREFIX everywhere 2012-02-21 22:13:41 +00:00
Tom Christie
9277f438cb Fix YAML parser bug 2012-02-21 22:09:05 +00:00
Paul Oswald
50198935af Rename templates to 'base.html', 'api.html', 'api.txt' and 'login.html' 2012-02-20 22:16:51 +09:00
Paul Oswald
cbd0752740 Move the templates into a named directory 2012-02-15 10:33:49 +09:00
Ben Timby
049d417ebc Reverted formatting 2012-01-24 14:11:10 -05:00
Ben Timby
7fa3a214fb Refactored get_name()/get_description() 2012-01-23 13:32:37 -05:00
Tom Christie
dea4a45ec7 pep8/pyflakes cleanup 2012-01-21 18:33:34 +00:00
Tom Christie
b1105edfed Use safe_dump. Fixes #123. 2012-01-11 13:43:47 +00:00
Marko Tibold
aaa14a3e17 fixes #122
tahanks @remcogerlich
2012-01-11 10:27:14 +01:00
Craig Blaszczyk
46e4ba258f #75 remove except statements which are overly broad in the exception they catch 2012-01-04 18:05:12 +00:00
Tom Christie
07349597ab whitespace fixes 2011-12-29 13:31:12 +00:00
Tom Christie
1bdc5eacc6 Add JSONP. Fixes #82 2011-12-29 13:24:52 +00:00
Anthony Nemitz
9f63e8dd1d ADMIN_MEDIA_PREFIX is deprecated in django1.4 2011-12-19 22:09:09 -08:00
Tom Christie
f7b7778a79 pull in markos changes, minor tweaks to yaml stuff 2011-07-01 17:44:08 +01:00
Michael Fötsch
d8bec115ad Allow .json .html .xml style urls and also allow these formats to be specified in a "?format=..." query string. 2011-06-26 16:03:36 +02:00
markotibold
7f536c1db3 Very basic YAML support. Probably needs some tweaking, and definitely needs tests. 2011-06-26 01:34:52 +02:00
Tom Christie
50efa10652 Add version to html 2011-06-25 10:25:26 +01:00
Tom Christie
82de0cf50a Decimals are a protected_type - let's leave them up to the renderer to deal with 2011-06-21 23:01:41 +01:00
Tom Christie
7dcb851c7f Allow related models to be fully serialized 2011-06-15 14:09:01 +01:00
Tom Christie
21d2dcc294 Allow .form specified on view. Allow get_form, put_form, post_form. Add .PARAMS. 2011-05-27 14:40:19 +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
markotibold
92c015e049 Most of the actual work so far has been markup really. 2011-05-18 22:13:48 +02:00
Tom Christie
1e04790d50 Fixing some of the last blocking issues 2011-05-16 14:11:36 +01:00
Tom Christie
8f6bcac7f3 cleanup 2011-05-13 09:59:36 +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
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