l.L.LaunchpadService : class documentation

Part of lpltk.LaunchpadService View In Hierarchy

Manages connection to Launchpad services.
Method __init__ Initialize the Arsenal instance.
Method reset Re-establish access to Launchpad and reload the specific project if one is
Method get_bug Undocumented
Method get_launchpad_bug Fetch a Launchpad bug object for a specific Launchpad bug id.
Method load_project Connect to a specific Launchpad project.
Method person Get a Person by the given name.
Method get_team_members Get the direct members of a Launchpad team.
Method distributions Undocumented
Method projects Undocumented
Method create_bug Undocumented
Method _load_user_config Load configuration from ~/.lpltkrc
def __init__(self, config=None):

Initialize the Arsenal instance.

The user's configuration (if one exists) is loaded and incorporated into the standard options. Access to Launchpad is initialized.

Configuration values to override can be passed in through config. For example:

 lp = LaunchpadService(config={
       'launchpad_services_root': 'edge',
       'read_only':               True
       })

 lp = LaunchpadService(config={
       'launchpad_client_name':   'my-lpltoolkit-project',
       'launchpad_services_root': 'https://api.launchpad.dev'
       })

 lp = LaunchpadService(config={
       'launchpad_version':       '1.0',
       'bot':                     True
       })
def reset(self):
Re-establish access to Launchpad and reload the specific project if one is specified.
def get_bug(self, bug_number):
Undocumented
def get_launchpad_bug(self, bug_number):
Fetch a Launchpad bug object for a specific Launchpad bug id.
def load_project(self, project):
Connect to a specific Launchpad project.
def person(self, name):
Get a Person by the given name.
def get_team_members(self, team):
Get the direct members of a Launchpad team.
def _load_user_config(self):
Load configuration from ~/.lpltkrc

If the users home directory contains a configuration file, load that in. The name of the configuration file is '.lpltkrc'. The format of the file is json. The json format should be an array. The contents of that array will be merged with the default one 'self.config' in this class.

@property
def distributions(self):
Undocumented
@property
def projects(self):
Undocumented
def create_bug(self, project, package, title, description, tags=):
Undocumented
API Documentation for lpltk, generated by pydoctor at 2012-05-21 15:24:05.