#NEWLINE# def _get_uri_attribute( self , child , parent , name ) : #NEWLINE# #INDENT# "Get a value to be associated with a URI attribute\n\n        `child` will not be None here as it's a required argument\n        on the proxy method. `parent` is allowed to be None if `child`\n        is an actual resource, but when an ID is given for the child\n        one must also be provided for the parent. An example of this\n        is that a parent is a Server and a child is a ServerInterface.\n        " #NEWLINE# if ( parent is None ) : #NEWLINE# #INDENT# value = getattr ( child , name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = resource2 . Resource . _get_id ( parent ) #NEWLINE# #UNINDENT# return child