attic/per-object-permissions

View source
attic/per-object-permissions
Author Commit Message Labels Comments Date
9936 commits behind default.
Default avatar uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Move the per-object-permissions branch into the attic.
Default avatar 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.
Default avatar adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [4241]
Default avatar adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [4101]
Default avatar adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Made some code-formatting changes
Default avatar adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Merged to trunk [4095]
Default avatar adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
per-object-permissions: Small change to django.db.models.base check to make it more explicit
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk [3938]
Default avatar 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
Default avatar 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%
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] First version where inline objects are checked for row level permissions
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk [3809]
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes another problem when using one-to-one relations and POPs
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes bug described in ticket #2749
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes the delete permission which assumed the object had an id attribute
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes MySQL error caused by when a user is not a member of a group
Default avatar 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.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk [3731]
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixes #2664 and #2663
Default avatar 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 /)
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed #2622 and added in contains_permission method to the anonymous user model
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed missing parenthesis
Default avatar 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 %}
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to trunk 3666
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed a debug print statement and changed an incorrect order of a format string
Default avatar 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)
Default avatar 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.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed up some comments
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Update to trunk
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added comments to change_list and admin_list.py
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed debug print statement in auth/models.py
Default avatar 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.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Expanded on has_module_perm to check for row level permissions contained within the module
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed commented (unused) code
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Added some more comments
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Minor fixes to admin RLP views
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Minor fixes to admin RLP interface
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Changed pagination to use the paginator tag described on http://code.djangoproject.com/wiki/PaginatorTag
Default avatar 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
Default avatar 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
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Renders multiple object select field using optgroup to separate the types of objects
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Created template tag if_has_perm to check for a users permission
Default avatar 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
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to revision 3582 (resolved conflict)
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Merged to revision 3582
Default avatar 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.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removing YUI toolkit code.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Removed AJAX code from branch. Will possibly be integrated in at another point.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Separated the AJAX javascript from the non-AJAX JS
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Forgot to add toolkit files in last commit
Default avatar 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.
Default avatar 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
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] model test for row level permissions (w/ files)
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] model test for row level permissions
Default avatar 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.
Default avatar 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.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Renamed the attribute in RLPs to be model instead of type
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Fixed some problems with checking of permissions
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Very basic integration of RLPs into admin interface.
Default avatar cl...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[per-object-permissions] Update to trunk
Default avatar 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
Default avatar 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
Default avatar ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Created per-object-permissions branch for Christopher Long's SoC project.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.