#NEWLINE# def run( self ) : #NEWLINE# #INDENT# logging . info ( 'Update each status' ) #NEWLINE# for status in Status . all ( ) . fetch ( 100 ) : #NEWLINE# #INDENT# status . default = False #NEWLINE# status . image = ( ( 'icons/fugue/' + status . image ) + '.png' ) #NEWLINE# status . put ( ) #NEWLINE# #UNINDENT# default_status = Status . get_by_slug ( 'up' ) #NEWLINE# if ( default_status is None ) : #NEWLINE# #INDENT# logging . error ( 'Could not find the up status' ) #NEWLINE# return #NEWLINE# #UNINDENT# default_status . default = True #NEWLINE# default_status . put ( ) #NEWLINE# logging . info ( 'Set up status as the default' )