#NEWLINE# def append( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( args or ( not isinstance ( self . field , DictField ) ) ) : #NEWLINE# #INDENT# if ( len ( args ) != 1 ) : #NEWLINE# #INDENT# raise TypeError ( ( 'append() takes exactly one argument (%s given)' % len ( value ) ) ) #NEWLINE# #UNINDENT# value = args [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = kwargs #NEWLINE# #UNINDENT# self . list . append ( self . field . _to_json ( value ) )