#NEWLINE# def add_relationship( self , reltype , target , rId , is_external = False ) : #NEWLINE# #INDENT# '\n        Return a newly added |_Relationship| instance.\n        ' #NEWLINE# rel = _Relationship ( rId , reltype , target , self . _baseURI , is_external ) #NEWLINE# self [ rId ] = rel #NEWLINE# if ( not is_external ) : #NEWLINE# #INDENT# self . _target_parts_by_rId [ rId ] = target #NEWLINE# #UNINDENT# return rel