#NEWLINE# def _write_relationship( self , relationship ) : #NEWLINE# #INDENT# ( rel_type , target , target_mode ) = relationship #NEWLINE# attributes = [ ( 'Id' , ( 'rId' + str ( self . id ) ) ) , ( 'Type' , rel_type ) , ( 'Target' , target ) ] #NEWLINE# self . id += 1 #NEWLINE# if target_mode : #NEWLINE# #INDENT# attributes . append ( ( 'TargetMode' , target_mode ) ) #NEWLINE# #UNINDENT# self . _xml_empty_tag ( 'Relationship' , attributes )