#NEWLINE# def on_result( self , task , result ) : #NEWLINE# #INDENT# 'Called every result' #NEWLINE# if ( not result ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( 'taskid' in task ) and ( 'project' in task ) and ( 'url' in task ) ) : #NEWLINE# #INDENT# logger . info ( ( 'result %s:%s %s -> %.30r' % ( task [ 'project' ] , task [ 'taskid' ] , task [ 'url' ] , result ) ) ) #NEWLINE# return self . resultdb . save ( project = task [ 'project' ] , taskid = task [ 'taskid' ] , url = task [ 'url' ] , result = result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logger . warning ( ( 'result UNKNOW -> %.30r' % task ) ) #NEWLINE# return