#NEWLINE# def _xml_from( self , entries ) : #NEWLINE# #INDENT# '\n        Return XML for a [Content_Types].xml based on items in *entries*.\n        ' #NEWLINE# types_bldr = a_Types ( ) . with_nsdecls ( ) #NEWLINE# for entry in entries : #NEWLINE# #INDENT# if ( entry [ 0 ] == 'Default' ) : #NEWLINE# #INDENT# ( ext , content_type ) = entry [ 1 : ] #NEWLINE# default_bldr = a_Default ( ) #NEWLINE# default_bldr . with_Extension ( ext ) #NEWLINE# default_bldr . with_ContentType ( content_type ) #NEWLINE# types_bldr . with_child ( default_bldr ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( entry [ 0 ] == 'Override' ) : #NEWLINE# #INDENT# ( partname , content_type ) = entry [ 1 : ] #NEWLINE# override_bldr = an_Override ( ) #NEWLINE# override_bldr . with_PartName ( override_bldr ) #NEWLINE# override_bldr . with_ContentType ( content_type ) #NEWLINE# types_bldr . with_child ( override_bldr ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return types_bldr . xml ( )