Allow creation of PPAs via API

Bug #440652 reported by Cody A.W. Somerville
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Steve Kowalik

Bug Description

Please allow the creation of PPAs via API.

Related branches

Revision history for this message
Julian Edwards (julian-edwards) wrote :

It would be useful to have bug 392887 fixed before implementing this.

Changed in soyuz:
status: New → Triaged
importance: Undecided → Low
Changed in soyuz:
importance: Low → High
tags: added: api ppa
tags: added: bad-commit-11820
tags: added: qa-bad
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in soyuz:
assignee: nobody → Steve Kowalik (stevenk)
milestone: none → 10.11
tags: added: qa-needstesting
removed: qa-bad
Changed in soyuz:
status: Triaged → Fix Committed
Revision history for this message
Steve Kowalik (stevenk) wrote :

Marking as qa-ok, so it can be deployed. The browser code to add a PPA works, but the API call is not currently working.

tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Steve Kowalik (stevenk) wrote :

This actually works as expected, the script I was using to QA was to blame. With the following script:

#!/usr/bin/python

from launchpadlib.launchpad import Launchpad
from lazr.restfulclient.errors import HTTPError

launchpad = Launchpad.login_with('qa-mawson', 'qastaging')
me = launchpad.people.getByEmail(<email address hidden>')
try:
    me.createPPA()
except HTTPError:
    print "Creating 'ppa' failed as expected."
ppa = me.createPPA(name='test2', displayname='Test 2')
print ppa

I get the following output:

steven@liquified:~$ ./qa-ppa
Creating 'ppa' failed as expected.
https://api.qastaging.launchpad.net/1.0/~stevenk/+archive/test2

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Steve Kowalik (stevenk)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.