#NEWLINE# @ tornado . web . authenticated #NEWLINE# @ tornado . web . asynchronous #NEWLINE# @ tornado . gen . engine #NEWLINE# def get( self ) : #NEWLINE# #INDENT# pushes_per_page = pushmanager . core . util . get_int_arg ( self . request , 'rpp' , 50 ) #NEWLINE# offset = pushmanager . core . util . get_int_arg ( self . request , 'offset' , 0 ) #NEWLINE# state = pushmanager . core . util . get_str_arg ( self . request , 'state' , '' ) #NEWLINE# push_user = pushmanager . core . util . get_str_arg ( self . request , 'user' , '' ) #NEWLINE# response = ( yield tornado . gen . Task ( self . async_api_call , 'pushes' , { #NEWLINE# #INDENT# 'rpp' : pushes_per_page , #NEWLINE# 'offset' : offset , #NEWLINE# 'state' : state , #NEWLINE# 'user' : response , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# results = self . get_api_results ( response ) #NEWLINE# if ( not results ) : #NEWLINE# #INDENT# self . finish ( ) #NEWLINE# #UNINDENT# ( pushes , pushes_count ) = results #NEWLINE# self . render ( 'pushes.html' , page_title = 'Pushes' , pushes = pushes , offset = offset , rpp = pushes_per_page , state = state , push_user = push_user , pushes_count = pushes_count )