Merge lp:~jcsackett/launchpad/sharing-details into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-03-19 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14991 |
| Proposed branch: | lp:~jcsackett/launchpad/sharing-details |
| Merge into: | lp:launchpad |
| Diff against target: |
336 lines (+188/-8) 7 files modified
lib/lp/registry/browser/configure.zcml (+15/-2) lib/lp/registry/browser/distribution.py (+6/-2) lib/lp/registry/browser/pillar.py (+45/-2) lib/lp/registry/browser/product.py (+3/-1) lib/lp/registry/browser/tests/test_pillar_sharing.py (+90/-0) lib/lp/registry/templates/pillar-sharing-details.pt (+14/-0) lib/lp/security.py (+15/-1) |
| To merge this branch: | bzr merge lp:~jcsackett/launchpad/sharing-details |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Benji York (community) | code | 2012-03-19 | Approve on 2012-03-19 |
|
Review via email:
|
|||
Commit Message
Sets up infrastructure for the sharingdetails page for managing sharing (aka managing disclosure).
Description of the Change
Summary
=======
The managing sharing ui requires a page that shows the details of how a
particular person is being shared with by a pillar. This page anchors in the
infrastructure for that view. A subsequent branch
(lp:~jcsackett/launchpad/sharing-details-ui) adds the actual interaction
elements to the page.
Preimp
======
Spoke with Curtis Hovey about the necessary machinery and operation of
navigations and traversal for pillar person to allow the
+sharingdetails
Implementation
==============
* A new view has been registered as the default view (+index) for pillar
person.
* A navigation mixin has added to Distribution and Product Navigation, adding
the traversal stepthrough for +sharingdetails. This mixin ensures that a
result (a PillarPerson) is only provided if the person exists, and there are
accesspolicya
is actually sharing going on, and information to show).
* A security adapter for pillarperson has been added to check
`launchpad.
* A bunch of zcml has been added to register everything.
Tests
=====
bin/test -vvct test_pillar_sharing
QA
==
Using https:/
user being shared with. Check the corresponding +sharingdetails link for that
person; an empty page with the right title and label should render.
Lint
====
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
| j.c.sackett (jcsackett) wrote : | # |
Thanks, I've sorted the __all__, per your point.

This branch looks good. The only suggestion I have is that it wouldn't registry/ browser/ pillar. py.
hurt to sort the __all__ list in lib/lp/