

def _navigator_or_thunk(self, link):
    "Crafts a navigator or from a hal-json link dict.\n\n        If the link is relative, the returned navigator will have a\n        uri that relative to this navigator's uri.\n\n        If the link passed in is templated, a PartialNavigator will be\n        returned instead.\n        "
    uri = urlparse.urljoin(self.uri, link['href'])
    link_obj = Link(uri=uri, properties=link)
    if link.get('templated'):
        return PartialNavigator(link_obj, core=self._core)
    else:
        return HALNavigator(link_obj, core=self._core)

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py HALNavigatorBase._navigator_or_thunk/original