

def fetch(self):
    "\n        Description:\n        The CompTIA Codes Lookup API retrieves a list of CompTIA groups and modifiers.\n\n        Context:\n        The CompTIA Codes (Symptom Codes) are the current available selections \n        based on the component group code for parts.\n        The API can be executed only after valid Authentication.\n        Users can use the API at any point to retrieve the CompTIA code and \n        modifier details, in order to create or update repairs.\n\n        >>> CompTIA().fetch() # doctest: +ELLIPSIS\n        {u'A': {'989': u'Remote Inoperable', ...\n        "
    if self._cache.get('comptia'):
        return comp_id._cache.get('comptia')
    doc = self._submit('ComptiaCodeLookupRequest', 'ComptiaCodeLookup', 'comptiaInfo', raw=True)
    root = doc.find('.//comptiaInfo')
    for el in root.findall('.//comptiaGroup'):
        group = []
        comp_id = unicode(el[0].text)
        for ci in el.findall('comptiaCodeInfo'):
            group.append((ci[0].text, unicode(ci[1].text)))
        self._comptia[comp_id] = group
    self._cache.set('comptia', self._comptia)
    return self._comptia

dataset/ETHPy150Open filipp/py-gsxws/gsxws/comptia.py CompTIA.fetch/VarMisuse@25/249 `self`->`comp_id`