

def cache(self, link, nav):
    'Stores a navigator in the identity map for the current\n        api. Can take a link or a bare uri'
    if (link is None):
        return
    elif hasattr(nav, 'uri'):
        self.id_map[link.uri] = nav
    else:
        self.id_map[link] = nav

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py APICore.cache/VarMisuse@31/77 `link`->`nav`