1. Luke Plant
  2. django-piston

Source

django-piston / piston / utils.py

Author Commit Message Date Builds
Joshua Ginsberg
Fixes #188 - bind request.FILES to form in @validate decorator
Jesper Nøhr
cleaning up for style, adding rockhoward to AUTHORS.txt
Jesper Nøhr
ro...@user1-desktop
Improved valiadate decorator provides the validated form via the request
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
Alexander Ljungberg
Merge.
Alexander Ljungberg
Fixed: if for a PUT operation some middleware accessed request.POST, the coerce_put_post fix for Django's lack of PUT support would cause an exception. This fix resets the request so that coerce can work its magic.
Jesper Nøhr
content_type is lose, fixes #99
Jesper Nøhr
not loading unpickler by default, wrapping yaml unpacker with lambda-dict to not return crappy data, as it will otherwise, fixing a testcase with wrong content type
Jesper Nøhr
only send emails if there's a user on the consumer
Jesper Nøhr
time import needed
Jesper Nøhr
bumping version to 0.2.3rc1
Jesper Nøhr
pulling mmalone's throttle changes, lets hope they're correct
Jesper Nøhr
fixed tests
David Larlet
Check the existence of loadee before calling it
Joe Stump
- Added Consumer to request object. - Added INTERNAL_ERROR for 500 errors.
Joe Stump
- Fail silently if email templates are not present. - Don't send email to admins if there are no settings.ADMINS.
jst...@joseph-stumps-macbook-pro.local
- Moved email sending into Django signals in signals.py - Removed Consumer.save() - Removed Resource as it's no longer used (per Jesper's comments) - Created send_consumer_mail() in utils.py - Added initial ConsumerTest in tests.py - Added some documentation to Consumer.generate_random_codes() - Added initial test framework in test.py (including TestCase, Client and OAuthClient) - Added some initial fixtures for models.py
Jesper Nøhr
applying patch from #46, thanks gciotta
Jesper Nøhr
cleaning up cset from RobotAdam a bit to be consistent with our style
Adam Lowry
POSTs and PUTs with invalid data for the content-type return 400 Bad Request
theatilla
Fixing the Mimer behavior for identifying whether the content should be processed and placed in request.data or kept in the request.POST/PUT. Most systems do send a content-type for form-encoded data and that is "application/x-www-form-urlencoded". This resulted in request.content_type to always have a value and not be usable in the handlers. The request.content_type is now always set to None for normal form-encoded POST submissions, to match the documentation
Jesper Nøhr
importing patches from bmcmurray, fixes #42 and #43, adjusting testcases to expect indented json
Jesper Nøhr
only dispatching to anonymous handler is it wants the method. using AnonymousUser instead of False for failed auth
Jesper Nøhr
coerce_put_post is now mod_python compatible, fixes #39
Tags
0.2.1
Horst Gutmann
Made a minimal change to utils.coerce_put_post to support file-uploads Previously request.FILES got not populated.
Horst Gutmann
utils.Mixer.is_multipart now only checks the request header. This should fix some issues with testing multipart requests.
Adam Lowry
Changed message to msg in HttpStatusCode to avoid 2.6 DeprecationWarnings.
Jesper 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
rc_factory doesn't set correct HTTP code on response, fixes #37, thanks ack
  1. Prev
  2. 1
  3. 2
  4. Next