Source

django-piston-oauth2 / piston / resource.py

Author Commit Message Labels Comments Date
Kristian Bendiksen avatarKristian Bendiksen
Fixes for django 1.4 compatibility.
Jesper Nøhr avatarJesper Nøhr
actually, I'm sorry, that's kind of retarded, lets refactor that
Jesper Nøhr avatarJesper Nøhr
fixing errors caused by 9ba4a23474c1
Jesper Nøhr avatarJesper Nøhr
Emanuele Rocca avatarEmanuele Rocca
Properly raise Http404 on http methods not handled. Basic tests of Resource error handling.
Jesper Nøhr avatarJesper Nøhr
Ionel Maries Cristian avatarIonel Maries Cristian
Fixed Resource.error_handler to include em_format.
Ionel Maries Cristian avatarIonel Maries Cristian
Merge with upstream changes.
Default avatar ion.scerbatiuc
Added error handling for invalid emitter format.
Default avatar ion.scerbatiuc
Refactored the Resource class to be able to specify custom exception handling logic.
Default avatar Sever Banesiu
Added per request fields support.
Jesper Nøhr avatarJesper Nøhr
Default avatar Matt Cordes
updated error_handler method to take meth parameter (fixing a crash when a type error occurs)
Default avatar Matt Cordes
added missing return; fixed two typos
Default avatar Matt Cordes
adding easily overrideable error_handler method to Resource and test case
Default avatar Matt Cordes
fixed typo
Default avatar 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 avatarJesper Nøhr
mdorn avatarmdorn
Refactored `Resource` so that form validation functionality can be subclassed
Alexander Ljungberg avatarAlexander Ljungberg
Made universal request.data change compatible with Python <2.5.
Alexander Ljungberg avatarAlexander 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 avatarJesper Nøhr
auth may also come in form of a tuple, which we can't ignore
Jesper Nøhr avatarJesper Nøhr
support for multiple authenticators per resource w/ testcase and backwards compat
Jesper Nøhr avatarJesper Nøhr
catching Http404 to support get_object_or_404
Jesper Nøhr avatarJesper Nøhr
minor typo in form handling code
Jesper Nøhr avatarJesper Nøhr
passing http responses straight through, not double escaping
Jesper Nøhr avatarJesper Nøhr
possible to specify anonymous handlers as strings to reference them ahead of time
James Emerton avatarJames Emerton
Now supporting Handler.list_fields to restrict fieldset when multiple records are returned
Adam Lowry avatarAdam Lowry
POSTs and PUTs with invalid data for the content-type return 400 Bad Request
Matthew Marshall avatarMatthew 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.