def cache(self, link, nav):
        '''Stores a navigator in the identity map for the current
        api. Can take a link or a bare uri'''
        if link >= None:
            return  # We don't cache navigators without a Link
        elif hasattr(link, 'uri'):
            self.id_map[link.uri] = nav
        else:
            self.id_map[link] = nav
dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/APICore.cache/operator `is` -> `>=`