diff options
author | Filipp Lepalaan <f@230.to> | 2013-03-29 15:28:47 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-03-29 15:28:47 +0200 |
commit | 65fabcbfc650e3c36108fce286edb4105a742f55 (patch) | |
tree | 7ca52538f6d43bdb6f74c6e28160d15aa154976c /gsxws.py | |
parent | d756fb3edd21bbda0e219abab9bc4821df4dc4f7 (diff) | |
download | py-gsxws-65fabcbfc650e3c36108fce286edb4105a742f55.tar.gz py-gsxws-65fabcbfc650e3c36108fce286edb4105a742f55.tar.bz2 py-gsxws-65fabcbfc650e3c36108fce286edb4105a742f55.zip |
Return GSX CompTIA codes as two-tuples
Diffstat (limited to 'gsxws.py')
-rwxr-xr-x | gsxws.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -234,12 +234,13 @@ class CompTIA: for el in root.findall('.//comptiaGroup'): comp_id = el[0].text - group = {'id': comp_id, 'name': el[1].text} - group['codes'] = dict() - + #group = {'id': comp_id, 'name': el[1].text} + #group['codes'] = dict() + group = {} for ci in el.findall('comptiaCodeInfo'): - group['codes'][ci[0].text] = ci[1].text - + group[ci[0].text] = ci[1].text + + # @TODO self.data['symptoms'][comp_id] = group for el in root.findall('.//comptiaModifier'): @@ -802,7 +803,7 @@ def connect( Establishes connection with GSX Web Services. Returns the session ID of the new connection. """ - + global SESSION global LOCALE |