Merge lp:~jml/launchpad/create-private-ppa-814567-2 into lp:launchpad
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Approved by: | Henning Eggers |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13588 |
Proposed branch: | lp:~jml/launchpad/create-private-ppa-814567-2 |
Merge into: | lp:launchpad |
Diff against target: |
116 lines (+44/-4) 5 files modified
lib/lp/registry/model/person.py (+1/-1) lib/lp/soyuz/interfaces/archive.py (+3/-1) lib/lp/soyuz/model/archive.py (+3/-1) lib/lp/soyuz/stories/webservice/xx-person-createppa.txt (+36/-0) lib/lp/soyuz/tests/test_archive.py (+1/-1) |
To merge this branch: | bzr merge lp:~jml/launchpad/create-private-ppa-814567-2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | Approve | ||
Review via email: mp+70028@code.launchpad.net |
Commit message
[r=henninge][bug=814567] Allow certain users to create private PPAs over the API. This time for sure.
Description of the change
This branch corrects a key mistake from https:/
The updated pagetest actually guarantees that the PPA can be created and that it is set to private. Other than that, the changes are minimal: pass 'private' through, and set the attribute as needed. We don't need to worry about zope security blowing up, because validatePPA needs to pass before we can get there, and it does the same check.
To post a comment you must log in.
I'd *strongly* prefer that private=False is the default for the model code to the match the code in IArchive.