mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-19 21:01:30 +00:00
Rename lpapiwrapper.py to lpapicache.py as it describes its function better
This commit is contained in:
parent
b3b816515e
commit
74e55c2166
2
buildd
2
buildd
@ -27,7 +27,7 @@ import sys
|
|||||||
from optparse import OptionGroup
|
from optparse import OptionGroup
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from ubuntutools.lp.udtexceptions import SeriesNotFoundException, PackageNotFoundException
|
from ubuntutools.lp.udtexceptions import SeriesNotFoundException, PackageNotFoundException
|
||||||
from ubuntutools.lp.lpapiwrapper import LpApiWrapper, PersonTeam
|
from ubuntutools.lp.lpapicache import LpApiWrapper, PersonTeam
|
||||||
|
|
||||||
# Usage.
|
# Usage.
|
||||||
usage = "%prog <srcpackage> <release> <operation>\n\n"
|
usage = "%prog <srcpackage> <release> <operation>\n\n"
|
||||||
|
@ -33,7 +33,7 @@ import urllib2
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
# ubuntu-dev-tools modules.
|
# ubuntu-dev-tools modules.
|
||||||
from ubuntutools.lp.lpapiwrapper import LpApiWrapper
|
from ubuntutools.lp.lpapicache import LpApiWrapper
|
||||||
from ubuntutools.lp.udtexceptions import SeriesNotFoundException, PackageNotFoundException
|
from ubuntutools.lp.udtexceptions import SeriesNotFoundException, PackageNotFoundException
|
||||||
|
|
||||||
if not os.path.exists("/usr/bin/dget"):
|
if not os.path.exists("/usr/bin/dget"):
|
||||||
|
@ -38,7 +38,7 @@ from time import sleep
|
|||||||
# ubuntu-dev-tools modules.
|
# ubuntu-dev-tools modules.
|
||||||
import ubuntutools.lp.libsupport as lp_libsupport
|
import ubuntutools.lp.libsupport as lp_libsupport
|
||||||
import ubuntutools.lp.udtexceptions as udtexceptions
|
import ubuntutools.lp.udtexceptions as udtexceptions
|
||||||
from ubuntutools.lp.lpapiwrapper import Launchpad, LpApiWrapper, PersonTeam
|
from ubuntutools.lp.lpapicache import Launchpad, LpApiWrapper, PersonTeam
|
||||||
# https_proxy fix
|
# https_proxy fix
|
||||||
import ubuntutools.common
|
import ubuntutools.common
|
||||||
import ubuntutools.packages
|
import ubuntutools.packages
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# lpapiwrapper.py - wrapper class around the LP API for use in the
|
# lpapicache.py - wrapper classes around the LP API implementing caching
|
||||||
# ubuntu-dev-tools package
|
# for usage in the ubuntu-dev-tools package
|
||||||
#
|
#
|
||||||
# Copyright © 2009 Michael Bienia <geser@ubuntu.com>
|
# Copyright © 2009 Michael Bienia <geser@ubuntu.com>
|
||||||
#
|
#
|
||||||
@ -50,6 +50,8 @@ class Launchpad(object):
|
|||||||
return self
|
return self
|
||||||
Launchpad = Launchpad()
|
Launchpad = Launchpad()
|
||||||
|
|
||||||
|
# Almost deprecated, better use the specific classes like Distribution
|
||||||
|
# or PersonTeam directly
|
||||||
class LpApiWrapper(object):
|
class LpApiWrapper(object):
|
||||||
'''
|
'''
|
||||||
Wrapper around some common used LP API functions used in
|
Wrapper around some common used LP API functions used in
|
Loading…
x
Reference in New Issue
Block a user