Part of lpltk.LaunchpadService View In Hierarchy
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 |
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 })
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.