django-piston / piston / utils.py

Author Commit Message Labels Comments Date
Jesper Nøhr avatarJesper Nøhr
cleaning up cset from RobotAdam a bit to be consistent with our style
Adam Lowry avatarAdam Lowry
POSTs and PUTs with invalid data for the content-type return 400 Bad Request
theatilla avatartheatilla
Fixing the Mimer behavior for identifying whether the content should be processed and placed in request.data or kept in the request.POST/PUT.
Jesper Nøhr avatarJesper Nøhr
importing patches from bmcmurray, fixes #42 and #43, adjusting testcases to expect indented json
Jesper Nøhr avatarJesper Nøhr
only dispatching to anonymous handler is it wants the method. using AnonymousUser instead of False for failed auth
Jesper Nøhr avatarJesper Nøhr
coerce_put_post is now mod_python compatible, fixes #39
Tags
0.2.1
Horst Gutmann avatarHorst Gutmann
Made a minimal change to utils.coerce_put_post to support file-uploads
Horst Gutmann avatarHorst Gutmann
utils.Mixer.is_multipart now only checks the request header.
Adam Lowry avatarAdam Lowry
Changed message to msg in HttpStatusCode to avoid 2.6 DeprecationWarnings.
Jesper Nøhr avatarJesper Nøhr
Use get() instead of filter() for GET request in model-based Handerl if primary key is used in request, fixes #38, thanks ack
Jesper Nøhr avatarJesper Nøhr
rc_factory doesn't set correct HTTP code on response, fixes #37, thanks ack
Jesper Nøhr avatarJesper Nøhr
bit of tweaking to content-type detection and default create method
Jesper Nøhr avatarJesper Nøhr
utils.rc.RESPONSE returns a fresh HttpResponse every time now
Jesper Nøhr avatarJesper Nøhr
removing unnused (python 2.4 incompat) functools.wraps import
Jesper Nøhr avatarJesper Nøhr
adding @require_mime decorator and @require_extended as well
Jesper Nøhr avatarJesper Nøhr
mimer added, will decode json/yaml etc., not ready for any action
Jesper Nøhr avatarJesper Nøhr
bumping version to 0.2
Jesper Nøhr avatarJesper Nøhr
decorator behavior, more handlers, adding crash report code, fork & mq handlers
Jesper Nøhr avatarJesper Nøhr
consumer management, documentation generation, api views
Jesper Nøhr avatarJesper Nøhr
wiki create/update works smoothly
Jesper Nøhr avatarJesper Nøhr
supports search on /repositories/ now, adding BAD_REQUEST (400) to utils.rc
Jesper Nøhr avatarJesper Nøhr
using bitwise permission scheme for repository permissions in API, adding accessible_to to Repository (returns these bits), HTTP 400 on immediate form validation
Jesper Nøhr avatarJesper Nøhr
using proper http status codes for most common operations now, detecting encoding via content-type header, all unittests pass, HttpResponse objects are not serialized, allows for cool stuff
Jesper Nøhr avatarJesper Nøhr
issue handler, test for issue CRUD, 'rc' in utils contains status codes
Jesper Nøhr avatarJesper Nøhr
cleanup: getting rid of @resource_uri, reusing djangos permalinks instead, can be overwritten with 'resource_uri' staticmethod in handler.. resource url per model, not per handler, makes more sense.. get_api_url permalink on models now respected
Jesper Nøhr avatarJesper Nøhr
resource identifiers, old testcases fied, a few new ones, automatic endpoint stuff
Jesper Nøhr avatarJesper Nøhr
piston: complete CRUD testcase for repositories, modelform validation, etc.
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.