#NEWLINE# def _generate_text( self ) : #NEWLINE# #INDENT# for code in sorted ( self . keys ( ) ) : #NEWLINE# #INDENT# if ( presentation in Attributes . NO_GENERATION ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# attribute = self [ code ] #NEWLINE# if ( ( code not in self . representation ) or attribute . GENERIC ) : #NEWLINE# #INDENT# if ( code in self . MULTIPLE ) : #NEWLINE# #INDENT# for attr in attribute : #NEWLINE# #INDENT# ( yield ( ' attribute [ 0x%02X 0x%02X %s ]' % ( code , attr . FLAG , str ( attr ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( ' attribute [ 0x%02X 0x%02X %s ]' % ( code , attribute . FLAG , str ( attribute ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ( how , _ , name , presentation , __ ) = self . representation [ code ] #NEWLINE# if ( how == 'boolean' ) : #NEWLINE# #INDENT# ( yield ( ' %s' % name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( how == 'list' ) : #NEWLINE# #INDENT# ( yield ( ' %s %s' % ( name , ( presentation % str ( attribute ) ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( how == 'multiple' ) : #NEWLINE# #INDENT# ( yield ( ' %s %s' % ( name [ 0 ] , ( presentation % str ( attribute ) ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( ' %s %s' % ( name , ( presentation % str ( attribute ) ) ) ) )