#NEWLINE# def build( self , value ) : #NEWLINE# #INDENT# if ( not isinstance ( value , Message ) ) : #NEWLINE# #INDENT# raise TypeError ( 'You MUST use a Message to build your response' ) #NEWLINE# #UNINDENT# func = ( self . callback or 'simpleapiCallback' ) #NEWLINE# return ( '%(func)s(%(data)s)' % { #NEWLINE# #INDENT# 'func' : func , #NEWLINE# 'data' : value . to_json ( as_dict = False ) , #NEWLINE# #UNINDENT# } )