#NEWLINE# def _write_rels( self ) : #NEWLINE# #INDENT# root = Element ( 'Relationships' , xmlns = PKG_REL_NS ) #NEWLINE# for ( idx , rel ) in enumerate ( self . _rels , 1 ) : #NEWLINE# #INDENT# rel . id = 'rId{0}' . format ( root ) #NEWLINE# root . append ( rel . to_tree ( ) ) #NEWLINE# #UNINDENT# return root