canUploadPackage(): Assume 'universe' as component if the package doesn't
exist (yet) in Ubuntu (needed for checking sponsorship when requesting syncs
of new packages).
* requestsync: use canUploadPackage() from LpApiWrapper
a value fetched from LP. Instead fetch the default value during call time.
This way the functions module doesn't require to use LP API during module
load.
* buildd: Move the import of ubuntutools.lp.functions to the other module
inclusion.
OO-way and add caching
* ubuntutools/lp/functions.py: Use the lpapiwrapper.py where applicable and
mark the rewritten functions as deprecated
* ubuntutools/lp/udtexceptions.py: Add PocketDoesNotExistException
* buildd: Make use of LpApiWrapper
* ubuntutools/lp/cookie.py
* ubuntutools/lp/urlopener.py
And removed references from these files as necessary:
* requestsync
* ubuntutools/lp/functions.py
- Simplify isLPTeamMember.
<Laney> andersk: what does super_teams do?
<andersk> Laney: I found super_teams using dir(launchpad.me). It
returns the collection of teams that the person is a member of. I'm
not sure it's actually documented.
<Laney> andersk: I've found the documentation to be a bit
lacking. Does it count indirect memberships too?
<andersk> Laney: yes, it appears to.
<Laney> andersk: If that's right then your version is better than mine
<Laney> andersk: Could you prepare a branch for merging? I'd just do
it directly but I'm a bit busy now so can't, and I'm afraid I'll
forget
ubuntutools/lp/udtexceptions.py:
- Add new public functions that expose features from LP API
- Modify isLPTeamMember to use LP API
* requestsync
- Use new functions to check if user can upload requested package directly
instead of checking team membership
- Default to current development release if no release is specified on
commandline
* buildd
- Check if user has upload privileges instead of checking for team
membership when seeing if operations are permitted
http://people.ubuntu.com/~pitti/scripts/buildd.py
* ubuntutools/common.py: Python module to be used to enable the use of cookies
to authenticate with Launchpad.
* debian/ubuntu-dev-tools.install: Added line to install common.py above to
the correct location.