aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/comptia.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-09 10:39:05 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-10-09 10:39:05 +0300
commitd278969719a9fd089fe39eb74c31fcfe1ddac4fd (patch)
treef14c4f24e0ed684e394a4bfeca4e7e63f38ffc74 /gsxws/comptia.py
parentc6c71309b48062ef9f0315b0d2fe69d6b65fe301 (diff)
downloadpy-gsxws-d278969719a9fd089fe39eb74c31fcfe1ddac4fd.tar.gz
py-gsxws-d278969719a9fd089fe39eb74c31fcfe1ddac4fd.tar.bz2
py-gsxws-d278969719a9fd089fe39eb74c31fcfe1ddac4fd.zip
Return diagnostic suites as two-tuple
Diffstat (limited to 'gsxws/comptia.py')
-rw-r--r--gsxws/comptia.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/gsxws/comptia.py b/gsxws/comptia.py
index 4884c2e..a12c046 100644
--- a/gsxws/comptia.py
+++ b/gsxws/comptia.py
@@ -51,11 +51,11 @@ class CompTIA(GsxObject):
The CompTIA Codes Lookup API retrieves a list of CompTIA groups and modifiers.
Context:
- The CompTIA Codes (Symptom Codes) are the current available selections based on
- the component group code for parts.
+ The CompTIA Codes (Symptom Codes) are the current available selections
+ based on the component group code for parts.
The API can be executed only after valid Authentication.
- Users can use the API at any point to retrieve the CompTIA code and modifier details,
- in order to create or update repairs.
+ Users can use the API at any point to retrieve the CompTIA code and
+ modifier details, in order to create or update repairs.
>>> CompTIA().fetch() # doctest: +ELLIPSIS
{u'A': {'989': u'Remote Inoperable', ...
@@ -63,7 +63,8 @@ class CompTIA(GsxObject):
if self._cache.get('comptia'):
return self._cache.get('comptia')
- doc = self._submit("ComptiaCodeLookupRequest", "ComptiaCodeLookup", "comptiaInfo", raw=True)
+ doc = self._submit("ComptiaCodeLookupRequest", "ComptiaCodeLookup",
+ "comptiaInfo", raw=True)
root = doc.find('.//comptiaInfo')
for el in root.findall(".//comptiaGroup"):