Menu

Commit [r6107]  Maximize  Restore  History

context-refactoring: rework r6104 based on feedback from nkantrowitz

The idea here is that IPermissionPolicy plugin writers shouldn't bother with taking the username and resource information from the perm cache. Rather, it's simpler for them to be presented with the `username`, `resource` and `perm` parameters directly. We also make the guarantee that `perm` matches the given `username` and `resource`.

cboos 2007-10-26

changed /sandbox/context-refactoring/sample-plugins/authz_policy.py
changed /sandbox/context-refactoring/sample-plugins/vulnerability_tickets.py
changed /sandbox/context-refactoring/trac/attachment.py
changed /sandbox/context-refactoring/trac/perm.py
changed /sandbox/context-refactoring/trac/tests/perm.py
/sandbox/context-refactoring/sample-plugins/authz_policy.py Diff Switch to side-by-side view
Loading...
/sandbox/context-refactoring/sample-plugins/vulnerability_tickets.py Diff Switch to side-by-side view
Loading...
/sandbox/context-refactoring/trac/attachment.py Diff Switch to side-by-side view
Loading...
/sandbox/context-refactoring/trac/perm.py Diff Switch to side-by-side view
Loading...
/sandbox/context-refactoring/trac/tests/perm.py Diff Switch to side-by-side view
Loading...