Can't call named operations on lp.me
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned |
Bug Description
The team createPPA() does not appear to add a ppa to the user:
ppa_name = "lp123456"
team = launchpad.me
results = team.createPPA(
name=ppa_name,
displayname
description
team.lp_save()
print "-- saved --"
ppa = team.getPPAByNa
print "Created PPA %s for %s" %(ppa.name, team.name)
results in:
-- saved --
Traceback (most recent call last):
File "./create-ppa.py", line 16, in <module>
ppa = team.getPPAByNa
File "/usr/lib/
url, in_representation, http_method, extra_headers=
File "/usr/lib/
raise error
lazr.restfulcli
Response headers:
---
-content-encoding: gzip
content-length: 24
content-type: text/plain
date: Sat, 10 Sep 2011 03:05:27 GMT
server: zope.server.http (HTTP)
status: 404
vary: Accept,
via: 1.1 api.launchpad.net
x-lazr-
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
No such ppa: 'lp123456'.
---
Confirmed no ppa shows up via the web interface either.
Guessing it should work, since it's documented as available on the launchpadapi page?
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- createPPA() api call doesn't create ppas + Can't call named operations on lp.me |
If this isn't working, it's a critical regression! However, I've tried to re-create and I have found the problem. For some weird reason, replacing
team = launchpad.me
with
team = launchpad. people[ 'julian- edwards' ]
fixes the issue. I've no idea why launchpad.me doesn't work.