62 Commits

Author SHA1 Message Date
Michael Bienia
a33a5c106b ubuntutools/lp/__init__.py: Define the default LP service to use (default: edge)
ubuntutools/lp/__init__.py: Don't hardcode the LP service root but look it up instead
debian/control: Depend on python-launchpadlib >= 1.5.4 because of this
2010-02-06 01:53:29 +01:00
Michael Bienia
ae5190c76f ubuntutools/lp/lpapicache.py: Check at some more place for basestring instead
of only str to catch also unicode ones.
2009-12-08 18:07:46 +01:00
Luca Falavigna
7082fa14ff ubuntutools/lp/lpapicache.py: recent lazr.restfulclient does use of
unicode strings, use basestring to catch bot str and unicode.
2009-11-29 17:58:36 +01:00
Iain Lane
6db05720f3 Conditional LP API usage & better p-l-s errors
* lpapicache: Do not immediately bail out if we have no credentials to
  login. Clients are now expected to handle the lack of credentials
  themselves.
* pull-lp-source: Make LP API use optional - fall back to a hardcoded
  default release if we aren't using it. (LP: #477670)
* pull-lp-source: Detect more failure conditions and give a nice error
  instead of a trace
* buildd, requestsync: Detect & bail if we don't have credentials and need
  them. These scripts cannot continue under those circumstances.
2009-11-07 19:20:46 +00:00
Michael Bienia
48f591a4bb lpapicache.py: Fix imports with python-launchpadlib 1.5.1 and add
python-lazr-restfulclient to Depends
2009-08-29 11:13:08 +02:00
Michael Bienia
0510f340ca ubuntutools/lp/lpapicache.py: remove the useless LpApiWrapper class 2009-08-25 13:18:46 +02:00
Michael Bienia
30bb23a2b7 lpapicache.py:
- Catch IOError from libsupport.get_launchpad(), display the error and
   exit
 - Bug fix in PersonTeam.canUploadPackage()
 - Remove leftover code from PersonTeam.isPerPackageUploader()
2009-08-24 12:14:02 +02:00
Michael Bienia
8a29c11904 lpapicache.py: add DistributionSourcePackage 2009-08-06 16:23:38 +02:00
Michael Bienia
0db2c71998 lpapicache.py: Rename the SourcePackage class to SourcePackagePublishingHistory
which it really is and to make room once a class for the real source_package is
needed.
2009-08-06 16:16:17 +02:00
Michael Bienia
54e9563e92 Replace LpApiWrapper.getUbuntuSourcePackage() with
Distribution('ubuntu').getArchive().getSourcePackage()
2009-08-04 15:53:49 +02:00
Michael Bienia
a49e4f6d43 Replace LpApiWrapper.getUbuntuDistribution() with Distribution('ubuntu') 2009-08-04 15:49:24 +02:00
Michael Bienia
74e55c2166 Rename lpapiwrapper.py to lpapicache.py as it describes its function better 2009-08-04 15:40:41 +02:00