Source

django-piston / piston / resource.py

The branch 'django1.4' does not exist.
Author Commit Message Labels Comments Date
Andi Albrecht
Use _base_content_is_iter or _is_string on HttpResponse depending on Django version.
Branches
django1.4
Jesper Nøhr
actually, I'm sorry, that's kind of retarded, lets refactor that
Jesper Nøhr
fixing errors caused by 9ba4a23474c1
Jesper Nøhr
Emanuele Rocca
Properly raise Http404 on http methods not handled. Basic tests of Resource error handling.
Jesper Nøhr
Ionel Cristian Mărieș
Fixed Resource.error_handler to include em_format.
Ionel Cristian Mărieș
Merge with upstream changes.
ion.scerbatiuc
Added error handling for invalid emitter format.
ion.scerbatiuc
Refactored the Resource class to be able to specify custom exception handling logic.
Sever Banesiu
Added per request fields support.
Jesper Nøhr
Matt Cordes
updated error_handler method to take meth parameter (fixing a crash when a type error occurs)
Matt Cordes
added missing return; fixed two typos
Matt Cordes
adding easily overrideable error_handler method to Resource and test case
Matt Cordes
fixed typo
Matt Cordes
adding ability to return content to be formatted by an emitter and a custom status code. This time were extending the existing rc_factory functionality in piston.utils
Jesper Nøhr
mdorn
Refactored `Resource` so that form validation functionality can be subclassed
Alexander Ljungberg
Made universal request.data change compatible with Python <2.5.
Alexander Ljungberg
Always populate request.data to enable POST/PUT/content-type agnostic handlers. E.g. if an API allows both POSTs with url encoded content or a JSON dictionary, the same handler can tackle both. If the handler needs to do something specific it can still look at the content-type.
Jesper Nøhr
auth may also come in form of a tuple, which we can't ignore
Jesper Nøhr
support for multiple authenticators per resource w/ testcase and backwards compat
Jesper Nøhr
catching Http404 to support get_object_or_404
Jesper Nøhr
minor typo in form handling code
Jesper Nøhr
passing http responses straight through, not double escaping
Jesper Nøhr
possible to specify anonymous handlers as strings to reference them ahead of time
James Emerton
Now supporting Handler.list_fields to restrict fieldset when multiple records are returned
Adam Lowry
POSTs and PUTs with invalid data for the content-type return 400 Bad Request
Matthew Marshall
Fixed a problem with using authentication with the django test client on PUT requests.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next