#NEWLINE# def update_percent( self , current , total = None , raise_exception = False ) : #NEWLINE# #INDENT# 'Update the percent completion value.' #NEWLINE# if ( total is None ) : #NEWLINE# #INDENT# value = current #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = ( ( float ( current ) / float ( total ) ) * 100.0 ) #NEWLINE# #UNINDENT# self . percent = value #NEWLINE# self . _quiet_save ( raise_exception )