#NEWLINE# def __call__( self , field , **kwargs ) : #NEWLINE# #INDENT# kwargs . setdefault ( 'id' , field . id ) #NEWLINE# kwargs . setdefault ( 'name' , field . name ) #NEWLINE# template = ( self . data_template if field . data else self . empty_template ) #NEWLINE# return HTMLString ( ( template % { #NEWLINE# #INDENT# 'text' : html_params ( type = 'text' , readonly = 'readonly' , value = field . data ) , #NEWLINE# 'file' : html_params ( type = 'file' , ** kwargs ) , #NEWLINE# 'marker' : ( '_%s-delete' % field . name ) , #NEWLINE# #UNINDENT# } ) )