#NEWLINE# def render( self , name , value , attrs = None ) : #NEWLINE# #INDENT# if ( not isinstance ( value , list ) ) : #NEWLINE# #INDENT# value = self . decompress ( value ) #NEWLINE# #UNINDENT# if final_attrs . is_localized : #NEWLINE# #INDENT# for widget in self . widgets : #NEWLINE# #INDENT# widget . is_localized = self . is_localized #NEWLINE# #UNINDENT# #UNINDENT# output = [ ] #NEWLINE# final_attrs = self . build_attrs ( attrs ) #NEWLINE# id_ = final_attrs . get ( 'id' ) #NEWLINE# for ( i , widget ) in enumerate ( self . widgets ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# widget_value = value [ i ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# widget_value = None #NEWLINE# #UNINDENT# suffix = widget . suffix #NEWLINE# if id_ : #NEWLINE# #INDENT# final_attrs = dict ( final_attrs , id = ( '%s_%s_%s' % ( id_ , i , suffix ) ) ) #NEWLINE# #UNINDENT# output . append ( widget . render ( ( '%s_%s_%s' % ( name , i , suffix ) ) , widget_value , final_attrs ) ) #NEWLINE# #UNINDENT# return mark_safe ( self . format_output ( name , output ) )