def make_link(req, identity, relationship='self'):
 return {'href': make_url(req, identity), 'rel': relationship}

def make_link ( req , identity , relationship = 'self' ) : return { 'href' : make_url ( req , identity ) , 'rel' : relationship }
return a link structure for the supplied identity dictionary .