Michael Bienia
6e214de3b3
ubuntutools/lp/lpapicache.py: Replace tabs with spaces
2010-12-12 11:46:07 +01:00
Benjamin Drung
100ba7d1b5
Remove all trailing tabs.
2010-12-03 00:10:41 +01:00
Benjamin Drung
1943df29eb
Remove all trailing spaces.
2010-12-03 00:06:43 +01:00
Benjamin Drung
533fac4911
requestsync, ubuntutools/lp/lpapicache.py: Import functions explicitely.
2010-09-22 14:07:23 +02:00
Stefano Rivera
a2a4fc785d
ubuntutools/lp/libsupport.py: Support production API URLs in
...
translate_web_api.
2010-09-22 11:41:58 +02:00
Iain Lane
0021522956
all: Use production API rather than edge by default. Should be more
...
reliable and was advised by lifeless (LP team).
2010-09-14 09:30:04 +01:00
Michael Bienia
1e7993df3e
ubuntutools/lp/lpapicache.py: The LP API function archive.checkUpload() throws
...
an exception when the person has no upload rights.
2010-07-22 21:13:20 +02:00
Michael Bienia
924f910335
ubuntutools/lp/lpapicache.py: use the new LP API function archive.checkUpload() to check upload permissions
2010-07-11 18:41:14 +02:00
Michael Bienia
dfc59c0558
ubuntutools/lp/lpapicache.py: Also specify the LP API version to use when
...
using anonymous login.
2010-03-20 19:58:13 +01:00
Michael Bienia
5babcfe869
ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError.
2010-03-20 19:27:40 +01:00
Michael Bienia
e4e8f156bd
* ubuntutools/lp/lpapicache.py, ubuntutools/lp/libsupport.py: Add support
...
for different LP API versions.
* ubuntutools/lp/__init__.py: Set the '1.0' LP API version as default.
* massfile: Updated to 1.0 LP API.
2010-03-20 18:27:31 +01:00
Michael Bienia
8377c6bfa3
ubuntutools/lp/lpapicache.py:
...
* Specify __all__
2010-02-20 18:19:44 +01:00
Michael Bienia
f5c6695e13
ubuntutools/lp/lpapicache.py:
...
* Make PersonTeam.getMe() a class property (PersonTeam.me).
ubuntutools/requestsync/lp.py, ubuntu-build:
* Update for the above mentioned change.
2010-02-20 18:13:15 +01:00
Michael Bienia
8c114519e8
ubuntutools/lp/lpapicache.py:
...
* Add support for anonymous login to the Launchpad singleton.
ubuntutools/lp/udtexceptions.py:
* Add AlreadyLoggedInError
2010-02-20 17:07:03 +01:00
Michael Bienia
0dfe4b4731
ubuntutools/lp/lpapicache.py:
...
* PersonTeam.canUploadPackage() can now also check package sets for upload
permissions. This requires now to also pass the distroseries as package sets
are per distroseries.
* Drop PersonTeam.isPerPackageUploader() as it's also handled by canUploadPackage()
ubuntu-build: Update for the PersonTeam.canUploadChange().
ubuntutools/requestsync/{lp,mail}.py:
* needSponsorship() now also expects a release name because of the above mentioned
change to PersonTeam.canUploadPackage().
requestsync: Update for needSponsorship() change.
2010-02-20 15:48:48 +01:00
Michael Bienia
caafd18fb9
ubuntutools/lp/lpapicache.py:
...
Re-add dropped "beta/" to the resource type URLs
Use lookup_service_root() when checking for LP API URLs
2010-02-20 15:18:52 +01:00
Michael Bienia
b101712009
ubuntutools/lp/lpapicache.py: Add __repr__() to the BaseWrapper class
2010-02-12 19:36:08 +01:00
Michael Bienia
4f21ae1cd0
Replace translate_service() from ubuntutools.lp.libsupport with calls to
...
lookup_service_root() from launchpadlib.uris.
2010-02-12 18:47:02 +01:00
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
Michael Bienia
b3b816515e
lpapiwrapper.py: Move getMe() from LpApiWrapper to PersonTeam
2009-08-04 15:32:39 +02:00
Michael Bienia
cdb1292963
- lpapiwrapper.py: fix typos
...
- buildd: add options for the new mode (v2)
2009-07-25 17:03:14 +02:00
Michael Bienia
b96c73ba64
* Merge from by devel branch.
2009-07-25 16:00:26 +02:00
Michael Bienia
f3e8c0ee84
lpapiwrapper.py: Added methods needed for buildd.
2009-07-25 16:00:01 +02:00
Michael Bienia
ce84101f73
lpapiwrapper.py: Let PersonTeam.__str__() return a unicode string.
2009-07-25 14:04:25 +02:00
Michael Bienia
3fb1ca0b7c
lpapiwrapper.py:
...
- Move LpApiWrapper.canUploadPackage() and LpApiWrapper.isPerPackageUploader()
to PersonTeam. Leave stubs for now in LpApiWrapper.
2009-07-24 16:52:18 +02:00
Michael Bienia
3bcda69839
* udtexceptions.py
...
- Rename PocketDoesNotExist to PocketDoesNotExistException to be in line with
the naming of the other exceptions.
2009-07-23 14:21:42 +02:00
Michael Bienia
d062a2f8a6
* lpapiwrapper.py:
...
- Rename Distribution.getMainArchive() to getArchive() and let it also fetch
other archives besides the main one.
* udtexceptions.py:
- Add ArchiveNotFoundException
2009-07-23 14:19:21 +02:00
Michael Bienia
ddab40c44f
* lpapiwrapper.py:
...
- Move getUbuntuSourcePackage() from LpApiWrapper to the Archive class
and rename it to getSourcePackage().
- Leave LpApiWrapper.getUbuntuSourcePackage() as a shortcut for now.
2009-07-23 13:36:05 +02:00
Michael Bienia
a178201eea
* lpapiwrapper.py:
...
Add a Archive wrapper class.
2009-07-22 14:26:27 +02:00
Michael Bienia
fcf86d2ad2
* lpapiwrapper.py:
...
Move getUbuntu{Development,}Series from LpApiWrapper to Distribution
and rename it to get{Development,}Series
* pull-lp-source, requestsync:
Updated for the above mention change.
2009-07-22 13:43:53 +02:00
Michael Bienia
30915541e4
* lpapiwrapper.py:
...
- Move getUbuntuArchive() from LpApiWrapper to Distribution and rename it to
getMainArchive()
2009-07-22 12:23:36 +02:00
Michael Bienia
046798d12b
* lpapiwrapper.py:
...
Move isLpTeamMember from LpApiWrapper to PersonTeam where it belongs
2009-07-22 12:04:14 +02:00
Michael Bienia
d63b782aec
* lpapiwrapper.py:
...
- Add a check for cached LP API URLs instead of blindly fetching it
2009-07-22 11:54:31 +02:00
Michael Bienia
adf3557967
* lpapiwrapper.py:
...
- Update some doc strings
- Update PersonTeam to the new BaseWrapper
2009-07-22 11:47:22 +02:00
Michael Bienia
f0ca5053fe
* lpapiwrapper.py:
...
- Rewrite BaseWrapper.__new__() again to make it more generic
- Add a Distribution wrapper class
2009-07-22 11:27:28 +02:00
Michael Bienia
884024ddd8
* lpapiwrapper.py:
...
- Rename _PersonTeam to PersonTeam and make it a sub-class of BaseWrapper.
2009-07-19 16:17:02 +02:00
Michael Bienia
974deb0a9a
* lpapiwrapper.py:
...
- Rename _SourcePackage to SourcePackage and make it a sub-class of BaseWrapper
2009-07-19 15:59:43 +02:00
Michael Bienia
682d7be285
* lpapiwrapper.py:
...
- Replace _UbuntuSeries with DistroSeries
2009-07-19 15:49:14 +02:00
Michael Bienia
c397ad9f7b
* lpapiwrapper.py:
...
- add a base class for all wrapper classes
- add a wrapper class for "distro_series"
2009-07-19 15:40:07 +02:00