diff options
| author | Scott Bahling <sbahling@suse.de> | 2015-04-19 12:30:50 +0200 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2015-04-19 12:30:50 +0200 |
| commit | 5d1583fe035c8e646ab6beba2fde0b3bb5f87c12 (patch) | |
| tree | 253050494fc9f509f7e9090a08ac4c7680352893 /obsapi/__init__.py | |
| parent | 942ac9bdbe918873eb4f5984f87d54e1f93efc51 (diff) | |
| download | obsapi-5d1583fe035c8e646ab6beba2fde0b3bb5f87c12.tar.gz obsapi-5d1583fe035c8e646ab6beba2fde0b3bb5f87c12.tar.xz obsapi-5d1583fe035c8e646ab6beba2fde0b3bb5f87c12.zip | |
Add ObsApi.get_xml() method
get_xml will attempt to retrieve the xml response from the obs api.
If response failes, a dummy, blank xml file will be returned. This
makes the helper functions more robust against api connection errors.
If query failes, empty data will be simply be returned to the client.
The client is responsible for any response error checking.
The 'response' property is added to the ObsApi. This holds the
full requests response from the last api query. The client can check
this property to test for query success when required.
Diffstat (limited to 'obsapi/__init__.py')
0 files changed, 0 insertions, 0 deletions
