Commit Graph

41 Commits

Author SHA1 Message Date
Tom Christie
1c78bf53db Refactoring some basics 2012-09-06 13:49:15 +01:00
Tom Christie
367dd01a33 Fix permission issues 2012-09-05 13:04:07 +01:00
Tom Christie
c28b719333 Refactored throttling 2012-09-04 21:58:35 +01:00
Tom Christie
73cc77553e Drop ImmediateResponse 2012-08-26 23:06:52 +01:00
Tom Christie
1c28562397 Removing 403 immediate response 2012-08-25 13:43:28 +01:00
Tom Christie
aed26b218e Drop out resources & mixins 2012-08-24 22:11:00 +01:00
Tom Christie
4739e1c012 Merge work from sebpiq 2012-04-11 17:38:47 +01:00
Sébastien Piquemal
1ff741d1cc updated docs 2012-02-23 23:34:20 +02:00
Sébastien Piquemal
c04cb5145c merged with trunk 2012-02-14 10:10:04 +02:00
Tom Christie
ba1e3b4699 Fix typo. 2012-02-11 21:15:06 +00:00
Tom Christie
1ec165f38c OPTIONS is also a safe method. 2012-02-11 18:43:58 +00:00
Tom Christie
cb8d94b956 Improve docstring on DjangoModelPermissions, and also ensure the user is authenticated. 2012-02-11 18:29:24 +00:00
Tom Christie
2c11fd68f8 Minor name change 2012-02-11 17:48:35 +00:00
Tom Christie
88561a4ee2 Fix up DjangoModelPermissions. 2012-02-11 13:00:38 +00:00
Camille Harang
963d2ecccb DjangoModelPermisson's desc 2012-02-11 02:02:42 +01:00
Camille Harang
b236241982 check authentication after checking ModelResource 2012-02-11 01:54:28 +01:00
Camille Harang
bc80eb266f DjangoModelPermisson 2012-02-11 01:49:28 +01:00
Sébastien Piquemal
db0b01037a made suggested fixes 2012-02-10 10:18:39 +02:00
Sébastien Piquemal
ca96b4523b cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 2012-02-07 13:15:30 +02:00
Sébastien Piquemal
5bb6301b7f Response as a subclass of HttpResponse - first draft, not quite there yet. 2012-02-02 18:19:44 +02:00
Tom Christie
50c359c551 Refs #148 2012-01-30 15:54:38 +00:00
Tom Christie
278b3576f3 Fixes #148. Thanks @dvinegla. 2012-01-30 14:13:57 +00:00
Tom Christie
4f42303035 Typo. 2011-12-09 13:39:56 +00:00
Tom Christie
20f8956c8f Merge monseiur drummond's pagination niceness 2011-12-09 12:35:42 +00:00
Mason Tang
c50637287b Fix in permissions, user.is_staff is a field, not a function. 2011-08-24 07:49:16 -03:00
Tom Christie
b9fcea093c Edited djangorestframework/permissions.py via GitHub 2011-07-19 14:33:02 -07:00
Tom Christie
1cb84cd4e8 Merge throttling and fix up a coupla things 2011-06-15 14:41:09 +01:00
Tom Christie
323d52e7c4 Bits of cleaning up for the throttling 2011-06-14 11:08:29 +01:00
Tom Christie
fb26b11a75 Add PerViewThrottling and PerResourceThrottling to __all__ 2011-06-14 10:31:18 +01:00
Tom Christie
612d335c4c Add PerViewThrottling and PerResourceThrottling to __all__ 2011-06-14 10:30:29 +01:00
markotibold
437a062b6c implemeneted #28 2011-06-13 20:42:37 +02:00
markotibold
5be359fb29 * implemented Tom's nice config string for the trotlle rate e.g. '3/sec'
* We now have per-user, per-view and per-resource throttling

* Added a new exxception class as a convenience to detect pointless throttles

* refactored
2011-06-11 20:34:54 +02:00
markotibold
f854bc9065 * fixed test_request_throttling_is_per_user - it didn't make a request for the 2nd user
* implemented per_resource_throttling  + test

needs refactoring
2011-06-11 03:16:35 +02:00
markotibold
8ef333a29f implemented testing of per user throttling 2011-06-11 01:48:10 +02:00
markotibold
82c4ca9612 The core is now documented from the docstrings in the source. 2011-05-19 19:36:30 +02:00
Tom Christie
e7f8c06dbb Merge in marko's doc markup 2011-05-19 08:49:57 +01:00
Tom Christie
8c3280f9c0 data flattening needs to go into resource 2011-05-19 08:36:55 +01:00
markotibold
92c015e049 Most of the actual work so far has been markup really. 2011-05-18 22:13:48 +02:00
Tom Christie
8f58ee489d Getting the API into shape 2011-05-10 10:49:28 +01:00
Tom Christie
d373b3a067 Decouple views and resources 2011-05-04 09:21:17 +01:00
Tom Christie
659898ffaf Inital pass at generic permissions, throttling etc. 2011-04-27 18:08:32 +01:00