From 65fabcbfc650e3c36108fce286edb4105a742f55 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 29 Mar 2013 15:28:47 +0200 Subject: Return GSX CompTIA codes as two-tuples --- gsxws.py | 13 +++++++------ 1 file 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 -- cgit v1.2.3