Merge lp:~stevenk/launchpad/subscribers-can-view-p3as into lp:launchpad
Proposed by
Steve Kowalik
on 2010-06-17
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2010-06-24 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11057 |
| Proposed branch: | lp:~stevenk/launchpad/subscribers-can-view-p3as |
| Merge into: | lp:launchpad |
| Diff against target: |
227 lines (+166/-2) 4 files modified
lib/canonical/launchpad/security.py (+8/-1) lib/lp/soyuz/browser/archive.py (+17/-1) lib/lp/soyuz/browser/tests/test_archive_packages.py (+101/-0) lib/lp/soyuz/tests/test_archive_privacy.py (+40/-0) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/subscribers-can-view-p3as |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jelmer Vernooij (community) | code | 2010-06-17 | Approve on 2010-06-24 |
|
Review via email:
|
|||
Description of the Change
Allow subscribers to view P3As, but do not allow them to view +packages. Add tests that check that the links they receive are disabled, and that they receive 403 errors when they browse there directly.
To post a comment you must log in.
| Robert Collins (lifeless) wrote : | # |
| Jelmer Vernooij (jelmer) wrote : | # |
Thanks, good stuff.
There is only one empty line above TestPPAPackages, there should be two.
The test methods in TestP3APackages also contain the phrase p3a_packages again, this seems a bit superfluous given the test case name.
The comments on the first line of each test method explaining what the tests do could perhaps be docstrings.
review:
Approve
(code)

Just a small note on the vertical whitespace mid function: PEP8 says
to use that sparingly to separate logically distinct areas of a single
function; the 'list of things to check' is one big area IMO - I would
delete the vertical white space there.
-Rob