aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-03-29 15:28:47 +0200
committerFilipp Lepalaan <f@230.to>2013-03-29 15:28:47 +0200
commit65fabcbfc650e3c36108fce286edb4105a742f55 (patch)
tree7ca52538f6d43bdb6f74c6e28160d15aa154976c
parentd756fb3edd21bbda0e219abab9bc4821df4dc4f7 (diff)
downloadpy-gsxws-65fabcbfc650e3c36108fce286edb4105a742f55.tar.gz
py-gsxws-65fabcbfc650e3c36108fce286edb4105a742f55.tar.bz2
py-gsxws-65fabcbfc650e3c36108fce286edb4105a742f55.zip
Return GSX CompTIA codes as two-tuples
-rwxr-xr-xgsxws.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/gsxws.py b/gsxws.py
index 95552c2..1076ee1 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -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