Граф коммитов

278 Коммитов

Автор SHA1 Сообщение Дата
Thibaud Morel l'Horset ce669dd9cc fixed an issue where property fields were getting dropped by the emitter if their value evaluated to False 2010-05-11 23:26:05 -04:00
Jesper Noehr e644cbf572 actually, I'm sorry, that's kind of retarded, lets refactor that 2010-07-18 14:26:09 +03:00
Jesper Noehr 466a028691 welcome ema to authors.txt 2010-07-18 14:23:51 +03:00
Jesper Noehr bfcb60de9f fixing errors caused by 9ba4a23474c1 2010-07-18 14:22:56 +03:00
Jesper Noehr 21ace52b8f grabbing https://bitbucket.org/ema/django-piston too 2010-07-18 14:00:32 +03:00
Jesper Noehr 5a7786db41 adding jiaaro to authors 2010-07-18 13:56:33 +03:00
Jesper Noehr 08a71ff94b merging with http://bitbucket.org/jiaaro/django-piston 2010-07-18 13:55:58 +03:00
Emanuele Rocca 3371a79cd0 Properly raise Http404 on http methods not handled. Basic tests of Resource error handling. 2010-07-15 13:51:59 +02:00
Emanuele Rocca 3b386d1062 Some tests rely on yaml. Added to buildout.cfg 2010-07-15 11:14:31 +02:00
Jesper Noehr 6b533586ee Automated merge with http://bitbucket.org/ionelmc/django-piston 2010-06-27 13:11:56 +03:00
Jesper Noehr 25b0f062f6 importing http://bitbucket.org/m/attch/2009/10/csrf-bypass.patch for csrf goodness 2010-06-27 13:06:07 +03:00
Ionel Cristian Maries 2027350292 Fixed Resource.error_handler to include em_format. 2010-06-25 15:19:14 +03:00
Ionel Cristian Maries 79ed439714 Merge with upstream changes. 2010-06-25 12:12:10 +03:00
jiaaro b77be0c789 Fix for issue 117 on jespern's bitbucket - added an admin.py file and moved the registration of piston's models with the admin app into it 2010-05-28 08:52:57 -04:00
jiaaro 693b6fe4e9 fixed a bug where callables which require zero arguments can be used on models - it is possible that it should be ' == 0' since I'm pretty sure the ONE argument is supposed to be 'self' which is apparently not counted. (or maybe this is a python 2.6 issue) 2010-05-25 10:38:05 -04:00
Matt Cordes 4b56dc3ae7 added additional error_handler tests to test type errors and catch all error scenarios 2010-04-23 10:12:33 -04:00
Matt Cordes 814548d7cd updated error_handler method to take meth parameter (fixing a crash when a type error occurs) 2010-04-22 13:58:47 -04:00
Matt Cordes 5d2483225d updated error_handler method to take meth parameter (fixing a crash when a type error occurs) 2010-04-22 13:55:29 -04:00
Matt Cordes 8cac01cbf8 one more typo in test 2010-04-12 12:01:02 -04:00
Matt Cordes a2f124ad32 added missing return; fixed two typos 2010-04-12 11:57:47 -04:00
Matt Cordes 267a1bd2cf adding easily overrideable error_handler method to Resource and test case 2010-04-12 11:44:37 -04:00
Jesper Noehr 2f1e34f43b cleaning up for style, adding rockhoward to AUTHORS.txt 2010-04-07 18:26:17 +03:00
Jesper Noehr 44b7086aa0 Automated merge with http://bitbucket.org/rockhoward/django-piston/ 2010-04-07 18:24:56 +03:00
Jesper Noehr 4ddba2751c adding mcordes to AUTHORS.txt 2010-04-07 18:21:07 +03:00
Matt Cordes bc110f61d3 add test case with an example of returning a 201 status code and json formatted data response 2010-04-07 10:56:05 -04:00
Matt Cordes eed9a90f24 fixed typo 2010-04-01 10:57:12 -04:00
Matt Cordes 4df7d914a4 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 2010-04-01 10:37:16 -04:00
Ionel Cristian Maries ae9cbfc223 Merge 2010-03-24 16:48:07 +02:00
Ionel Cristian Maries 897bf970e5 Added support for extra_fields. 2010-03-24 15:43:11 +02:00
ion.scerbatiuc a5cd4fab51 Added error handling for invalid emitter format. 2010-03-24 11:53:54 +02:00
ion.scerbatiuc 67ce296a94 Fixed the tests for sending emails to account for cases when emails are not sent. 2010-03-22 15:15:13 +02:00
ion.scerbatiuc 1801239bc7 Added fields filtering to the emitter. 2010-03-19 16:44:45 +02:00
ion.scerbatiuc fc5840ab05 Refactored the Resource class to be able to specify custom exception handling logic. 2010-03-19 16:13:15 +02:00
Zak Johnson bfec0824fb Fix HandlerDocumentation.is_anonymous 2010-03-10 18:17:26 -08:00
Ionel Cristian Maries 494d495e4f Added namespacing to the piston package. 2010-03-04 16:14:35 +02:00
rock@user1-desktop b551afde43 Improved valiadate decorator provides the validated form via the request 2010-02-27 07:57:56 -06:00
Ionel Cristian Maries eaea40a273 Changed stale check so it works with custom "Base" handler classes. 2010-02-26 16:50:30 +02:00
Jesper Noehr cb9958a377 grabbing matt's changes from http://bitbucket.org/mdorn/django-piston/changeset/0210cf93e795/raw/django-piston-0210cf93e795.diff 2010-02-25 06:51:49 +02:00
Sever Banesiu 9520382a50 Changed the way documentation is generated. 2010-02-22 10:00:14 +02:00
Jesper Noehr 51cd3b0e0c blinding patching emitters.py, fixes #104 2010-02-17 15:48:50 +02:00
Sever Banesiu f037666c72 Added initial support for sphinx. 2010-02-17 11:36:41 +02:00
Sever Banesiu 30c4bb5d48 Added per request fields support.
Patched emitter to pass the fields attribute recursively.
2010-02-16 11:13:07 +02:00
Jesper Noehr 7719bd0f27 ehm, whole != hole 2010-02-15 23:46:57 +02:00
Jesper Noehr a475fbf6fc adding @garethr to AUTHORS.txt, thanks for fixing the json callback bug 2010-02-15 23:44:29 +02:00
Gareth Rushgrove 6b11698a1d added a module to validate a json callback function to prevent possible security issue 2010-02-15 17:51:50 +00:00
Jesper Noehr 826ae9e19e adding aljungberg to AUTHORS.txt 2010-02-01 21:54:02 +02:00
Alexander Ljungberg a71ba8f1a1 Made universal request.data change compatible with Python <2.5. 2010-02-01 14:48:27 -03:00
Alexander Ljungberg 2b008bbcab 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. 2010-02-01 13:15:09 -03:00
Alexander Ljungberg 006637b742 Merge. 2010-02-01 12:59:16 -03:00
Ionel Cristian Maries 40542ef61e Serialize virtual fields too. 2010-01-25 15:58:18 +02:00