Commit Graph

63 Commits

Author SHA1 Message Date
Roberto Rosario
351784a210 Add generic 'new holder' link 2012-01-09 06:41:58 -04:00
Roberto Rosario
5230b9ca53 Improve permission granting and revoking messages, improve navigation feedback 2012-01-09 04:51:01 -04:00
Roberto Rosario
86147c234b Add 'get_classes' to the DefaultAccessEntry class 2012-01-09 04:49:52 -04:00
Roberto Rosario
af962f5998 Add content type icon mapping for anonymous user 2012-01-09 04:49:10 -04:00
Roberto Rosario
a7f1e081c1 Refactor the EncapsulatedObject class 'encapsulate' method 2012-01-09 04:48:17 -04:00
Roberto Rosario
77400fc42f Make api module not dependant on any other 2012-01-09 04:47:41 -04:00
Roberto Rosario
4aad4efad3 Navigation feedback improvements for a few apps 2012-01-09 04:46:46 -04:00
Roberto Rosario
014ca49a7c Call the correct function to get list of registered classes for acl 2012-01-09 02:23:01 -04:00
Roberto Rosario
a2e00b7776 Use content type model name and not name when mapping content types to icons 2012-01-09 02:22:25 -04:00
Roberto Rosario
071da14330 Remove moved method and unused import 2012-01-09 02:22:04 -04:00
Roberto Rosario
78c99c7700 Add tags and smartlinks icon mappings 2012-01-09 02:21:17 -04:00
Roberto Rosario
6e24b56e0e Add missing capfirst import 2012-01-09 02:21:01 -04:00
Roberto Rosario
7aabd7a1cc Add 'get_classes' function to acls.api, add function docstrings 2012-01-09 02:20:27 -04:00
Roberto Rosario
7ea9033c02 Change the default return value of the acl tag to False if there is no navigation object available
* This fixes the creation views links for the anonymous users
2012-01-08 06:51:32 -04:00
Roberto Rosario
4db37003d9 Call the proper method when adding anonymous user singleton to the new holder list 2012-01-08 06:48:01 -04:00
Roberto Rosario
33513d34a5 Remove remarked code 2012-01-07 23:25:54 -04:00
Roberto Rosario
595e901b64 Add anonymous user support to the acl model manager methods 2012-01-07 23:24:04 -04:00
Roberto Rosario
b9f7939e3e Add the anonymous user singleton to the list of avaible holder for an acl 2012-01-07 23:22:55 -04:00
Roberto Rosario
d0acea0714 Add anonymous user support to the object encapsulator class 2012-01-07 23:22:03 -04:00
Roberto Rosario
28000ccfec Add proper permission checking to the ACL setup view links 2012-01-07 23:21:22 -04:00
Roberto Rosario
1cd3c4e7d0 Add related support to 'filter_objects_by_access' and 'get_allowed_class_objects' methods 2012-01-03 18:47:28 -04:00
Roberto Rosario
40d3426202 Split acls models module into models, managers, classes and api 2012-01-03 03:03:51 -04:00
Roberto Rosario
43c52d64e7 Add empty object_list support to the 'filter_objects_by_access' manager method 2012-01-03 02:26:29 -04:00
Roberto Rosario
f22a6f4ab0 Add proper label and icon for the new holder form submit button 2012-01-02 16:54:39 -04:00
Roberto Rosario
30416a094f Add superuser and staff user support to the filter_objects_by_access acl manager method 2012-01-02 06:47:25 -04:00
Roberto Rosario
233725cc58 Rename request to actor in more translatable texts 2012-01-02 05:59:07 -04:00
Roberto Rosario
8c19caa37a Initial translation for the acls app 2012-01-02 05:58:49 -04:00
Roberto Rosario
2cd91baa33 Initial translation files for the acl app 2012-01-02 05:43:33 -04:00
Roberto Rosario
46c40ea7ba Update acls app view module to use absolute importers, improve text formating so that ugettext doesn't complain 2012-01-02 05:40:15 -04:00
Roberto Rosario
b82aa2ccfc Update the acl app to use absolute imports, rename the acl_detail link text from edit to details, fix class default acl links permissions 2012-01-02 05:39:11 -04:00
Roberto Rosario
34311fb17e Cleanups, permissions separation into explicit module, absolute import update 2012-01-02 03:48:26 -04:00
Roberto Rosario
0f12364e0c Add ACLS_EDIT_ACL and ACLS_VIEW_ACL pero object access check 2011-12-25 03:23:44 -04:00
Roberto Rosario
53bf3d940d Added logging to the acls tag 2011-12-25 03:20:16 -04:00
Roberto Rosario
8ab692ddc8 Use self.content_type.model instead of name, rename holder to actor, add get_class_permission to the AccessEntry manager, Encapsulation class decapsulation for AccessEntry manager methods, add exception_on_empty to raise PermissionDenied when the result of a filtered list is empty 2011-12-25 03:19:34 -04:00
Roberto Rosario
3b884e8c8a Update get_allowed_class_objects to return a generator instead of a list, filter_objects_by_access to try return to return a queryset and failing that return a filtered list 2011-12-24 01:16:53 -04:00
Roberto Rosario
0fa3a07a73 Improve acl tag logic 2011-12-20 02:31:01 -04:00
Roberto Rosario
3338035232 Add convenience manager method filter_objects_by_access 2011-12-19 23:48:07 -04:00
Roberto Rosario
b93b227994 Add access checking method to AccessEntry class 2011-12-17 19:46:28 -04:00
Roberto Rosario
714f773b13 Add folder literal for content type icon 2011-12-17 19:45:13 -04:00
Roberto Rosario
ec1c5d78dd Add template tag to hangle acl in navigation 2011-12-17 19:44:23 -04:00
Roberto Rosario
79428117b8 Add new ObjectEncapsulation subclass ClassAccessHolder 2011-12-17 16:43:28 -04:00
Roberto Rosario
1f7b1bc904 Update new holder form to user HTML option groups and remove class permission current holders 2011-12-17 16:42:19 -04:00
Roberto Rosario
bdc0a965b4 Fix acls_class_acl_detail view 2011-12-17 16:41:31 -04:00
Roberto Rosario
574ef3c9c8 Update the default class acl setup views to a working state 2011-12-17 14:07:06 -04:00
Roberto Rosario
17b44387c9 Improve enclapsulated class unicode method, add grant and revoke method to the DefaultAccessEntry class 2011-12-17 14:06:12 -04:00
Roberto Rosario
2d28f23b9a Update the new acls holder form label 2011-12-17 14:04:17 -04:00
Roberto Rosario
5e76bc22f2 Add commented code for ideas 2011-12-14 09:12:05 -04:00
Roberto Rosario
00e5146686 Add acl app static media directory 2011-12-14 09:11:43 -04:00
Roberto Rosario
7dcaa1757a Initial class default ACLs views 2011-12-14 09:11:09 -04:00
Roberto Rosario
742b934bcc Initial db support for default classes ACLs 2011-12-14 09:10:45 -04:00