#NEWLINE# def TaskUpdatesVerbose( task , progress ) : #NEWLINE# #INDENT# if isinstance ( task . info . progress , int ) : #NEWLINE# #INDENT# info = task . info #NEWLINE# if ( not isinstance ( progress , str ) ) : #NEWLINE# #INDENT# progress = ( '%d%% (%s)' % ( info . progress , info . state ) ) #NEWLINE# #UNINDENT# print ( ( 'Task %s (key:%s, desc:%s) - %s' % ( info . name . info . name , info . key , info . description , progress ) ) )