#NEWLINE# @ app . route ( '/square/submit' , methods = [ 'POST' ] ) #NEWLINE# @ inlineCallbacks #NEWLINE# def square_submit( request ) : #NEWLINE# #INDENT# x = int ( request . args . get ( 'x' , [ 0 ] ) [ 0 ] ) #NEWLINE# res = ( yield wampapp . session . call ( 'com.example.square' , x ) ) #NEWLINE# returnValue ( '{} squared is {}' . format ( x , res ) )