Corey Bertram is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

q / django-piston (fork of jespern / django-piston)

Forked to roll in some patches.

Clone this repository (size: 233.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/q/django-piston
hg clone ssh://hg@bitbucket.org/q/django-piston

django-piston overview

Recent commits See more »

Author Revision Comments Message Labels Date
Corey Bertram e2b4dd507261 added 'no_params' decorator to utils. used for functions like create where you dont want any extra kwargs/args passed to the url. use it before 'validate' to avoid getting form errors returned'
Corey Bertram 6ce673e168a6 added the 'essential' decorator which can be used before a validate decorator to ensure that the proper param has been passed before attempting to validate against a model. example usage would be putting @essential(['name']) before an update def in order to ensure that the user has entered a proper url with a 'name' in order to do lookups on existing items with.
Corey Bertram 2b588f3a28ef Updated pistons 'validate' decorator to allow for PUT updates on existing models. Now if using it on an update function, you must pass in the name of the pk or unique field in searchfor dict, and the model so that an existing instance can be found.
Corey Bertram e1369e02fe33 removed whitespaces from utils...
Jesper Noehr 7970b070f884 adding some more people to AUTHORS.txt