Merge lp:~adeuring/launchpad/specification-grants into lp:launchpad
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15930 |
Proposed branch: | lp:~adeuring/launchpad/specification-grants |
Merge into: | lp:launchpad |
Diff against target: |
483 lines (+129/-69) 11 files modified
lib/lp/blueprints/browser/tests/test_specification.py (+2/-0) lib/lp/blueprints/configure.zcml (+0/-4) lib/lp/blueprints/model/specification.py (+6/-1) lib/lp/blueprints/model/tests/test_specification.py (+3/-0) lib/lp/blueprints/tests/test_specification.py (+59/-52) lib/lp/registry/interfaces/accesspolicy.py (+1/-0) lib/lp/registry/interfaces/sharingservice.py (+3/-1) lib/lp/registry/model/accesspolicy.py (+15/-5) lib/lp/registry/services/sharingservice.py (+3/-1) lib/lp/registry/services/tests/test_sharingservice.py (+30/-5) lib/lp/registry/tests/test_accesspolicy.py (+7/-0) |
To merge this branch: | bzr merge lp:~adeuring/launchpad/specification-grants |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+123062@code.launchpad.net |
Commit message
new parameter "specifications" for SharingService.
Description of the change
This branch makes it possible to grant access to a single specification that
is not publicly visible. (The security adapter for ISpecification does not
use yet these grants -- the MP would become overly long with this change...)
= Details =
lib/lp/
lib/lp/
lib/lp/
The property Specification.
because instances that are not publicly visible need a record in
the table AccessPolicyArt
AccessPolicy. These links are maintained by calling
reconcile_
This change leads to a number of changes in
lib/lp/
changed information_type with a simple assignment.
Furthermore, reconcile_
matching AccessPolicy record exists; these records are created by
calling speicifcaton.
but the class Product does not yet have a method
setSpecifcation
"officially".
lib/lp/
The attribute specification_id was simply missing in the interface class;
it is already used in the model.
lib/lp/
lib/lp/
lib/lp/
The core of the change: AccessArtifact.
SharingService.
not only with bugs and branches, but also with specifications.
= tests =
./bin/test -vvt lp.registry.
./bin/test -vvt lp.blueprints.
./bin/test -vvt lp.registry.
no lint
Abel--
Looks good, thanks.