#NEWLINE# def hidden( self ) : #NEWLINE# #INDENT# 'Return one or multiple hidden fields for the current value.  This\n        also handles subwidgets.  This is useful for transparent form data\n        passing.\n        ' #NEWLINE# fields = [ ] #NEWLINE# def _add_field( name , value ) : #NEWLINE# #INDENT# html = self . _field . form . html_builder #NEWLINE# fields . append ( html . input ( type = 'hidden' , name = name , value = value ) ) #NEWLINE# #UNINDENT# def _to_hidden( value , name ) : #NEWLINE# #INDENT# if isinstance ( value , list ) : #NEWLINE# #INDENT# for ( idx , value ) in enumerate ( value ) : #NEWLINE# #INDENT# _to_hidden ( value , make_name ( name , idx ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( value , dict ) : #NEWLINE# #INDENT# for ( key , value ) in value . iteritems ( ) : #NEWLINE# #INDENT# _to_hidden ( value , make_name ( name , key ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# _add_field ( name , value ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# _to_hidden ( self . value , self . name ) #NEWLINE# return '\n' . join ( fields )