#NEWLINE# def run_from_ui( self , ar , **kw ) : #NEWLINE# #INDENT# ar . success ( ** kw ) #NEWLINE# n = 0 #NEWLINE# for obj in ar . selected_rows : #NEWLINE# #INDENT# if ( not ar . response . get ( 'success' ) ) : #NEWLINE# #INDENT# ar . info ( 'Aborting remaining rows' ) #NEWLINE# break #NEWLINE# #UNINDENT# ar . info ( '%s for %s...' , str ( self . label ) , str ( self ) ) #NEWLINE# n += self . run_on_row ( obj , ar ) #NEWLINE# ar . set_response ( refresh_all = True ) #NEWLINE# #UNINDENT# msg = ( _ ( '%d row(s) have been updated.' ) % n ) #NEWLINE# ar . info ( msg )