Branches

attic/per-object-permissions

View source
attic/per-object-permissions
Author Commit Message Labels Comments Date
250+ commits behind default.
uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Move the per-object-permissions branch into the attic.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [5486] NOTE: Not fully tested, will be working on this over the next few weeks.
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [4241]
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [4101]
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Made some code-formatting changes
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [4095]
adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Small change to django.db.models.base check to make it more explicit
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk [3938]
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed a bug where the RLP for an inline object would only be set when changing an object not adding
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Sets the row level permisisons on objects created inline if the inline objects have row level permissions enabled. This has not been tested indepth, and might not work 100%
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] First version where inline objects are checked for row level permissions
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Latest revision showed "Edit Row Level Permissions" for all objects in admin interface (not just those for which it is enabled), this revision fixes this bug
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk [3809]
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes the bug described by schotm where group permissions were causing a db error when show_all_rows was set to false
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes another problem when using one-to-one relations and POPs
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes bug described in ticket #2749
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes the delete permission which assumed the object had an id attribute
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes MySQL error caused by when a user is not a member of a group
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes problem with one-to-one relationships as the original code assumed every model had an id attribute, now uses "_get_pk_val()" to determine the model id.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk [3731]
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes #2664 and #2663
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes #2652, modified the form field to include the app label in the select field (the elements of which are now separated by a /)
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed #2622 and added in contains_permission method to the anonymous user model
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed missing parenthesis
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] New method: get_model_list in the RowLevelPermission manager. This returns a list of ids for the given model that the user has the given permission on. It should work better then doing something like has_perm or {% if_has_perm %}
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk 3666
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed a debug print statement and changed an incorrect order of a format string
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed a bug where delete row level permission was giving a PermissionDenied error falsely. (Missed adding the file to the commit)
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed two bugs (noticed by Robert). 1) has_add_permission was not part of the new add user context and was causing an error when rendering the submit_row, changed view to have the has_add_permission 2) Custom SQL for checking if permissions exist was causing an error due to an incorrect False statment, corrected now.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed up some comments
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Update to trunk
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed bug in contains_permission where it was just checking against any permission instead of the given permission
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added comments to change_list and admin_list.py
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed debug print statement in auth/models.py
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Updated admin pages to use contains_permission, this means the admin interface will now show the change list link to a user even if they only have change row level permissions on one of the objects. Right now, it does list all the objects and does not filter out those that the user does not have permissions on.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Expanded on has_module_perm to check for row level permissions contained within the module
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed commented (unused) code
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added some more comments
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Minor fixes to admin RLP views
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Minor fixes to admin RLP interface
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Changed pagination to use the paginator tag described on http://code.djangoproject.com/wiki/PaginatorTag
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added "Edit Row Level Permissions" link on change_form if object has row level permissions enabled
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Updating admin interface of RLP to be on a separate page, not entirely working at this point
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed bug in if_has_perm tag that would cause it to not work if an object paramter was not passed to it
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Renders multiple object select field using optgroup to separate the types of objects
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added grant_change_row_level_perm and grant_delete_row_level_perm for admin class in models, assigns the given permissions automatically after creation of an object
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Created template tag if_has_perm to check for a users permission
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Corrected bug in creating of default row level perms that would cause no permission to be found due to capitalization
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Corrected incorrect import in row_level_perm_manipulator and made some format changes to the row level perm template
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to revision 3582 (resolved conflict)
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to revision 3582
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added "Apply Selected" button to RLP table that submits the selected row levle permissions to be changed.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removing YUI toolkit code.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed AJAX code from branch. Will possibly be integrated in at another point.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Separated the AJAX javascript from the non-AJAX JS
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Forgot to add toolkit files in last commit
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] AJAX interface is now working most of the time. A fair amount of work has to be done still and some tidying up of the interface. Uses YUI toolkit. Currently comes w/ the full toolkit, once debugged and working will keep only the needed js files.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Rewrote urls for row level permission views to take the ajax parameter as a GET instead of a addition to the URL
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] model test for row level permissions (w/ files)
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] model test for row level permissions
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed RLP perm checking so it now accepts the string app_label.perm_codename format correctly.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] First version of checking for row level permissions. No cache implemented at this point. See wiki page for more details.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Renamed the attribute in RLPs to be model instead of type
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed some problems with checking of permissions
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Very basic integration of RLPs into admin interface.
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Update to trunk
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] django.db.models.base now adds the row level permission relation when enabled using the meta class
cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Updated auth model's to contain the row level permission object and connected users with row level permissions
ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Created per-object-permissions branch for Christopher Long's SoC project.