#NEWLINE# @ gen . engine #NEWLINE# def _RepairBadViewpointAccounting( self , action , accounting , callback ) : #NEWLINE# #INDENT# if ( action == 'update' ) : #NEWLINE# #INDENT# ( yield gen . Task ( accounting . Update , self . _client ) ) #NEWLINE# logging . warning ( '  updated accounting entry: (%s, %s)' , accounting . hash_key , accounting . sort_key ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( action == 'add' ) : #NEWLINE# #INDENT# ( yield gen . Task ( accounting . Update , self . _client ) ) #NEWLINE# logging . warning ( '  added accounting entry: (%s, %s)' , accounting . hash_key , accounting . sort_key ) #NEWLINE# #UNINDENT# #UNINDENT# callback ( )