#NEWLINE# def handle( self , * args , **options ) : #NEWLINE# #INDENT# disconnect_entry_signals ( ) #NEWLINE# self . verbosity = int ( options . get ( 'verbosity' , 1 ) ) #NEWLINE# for entry in Entry . objects . all ( ) : #NEWLINE# #INDENT# self . write_out ( ( 'Processing %s\n' % entry . title ) ) #NEWLINE# changed = False #NEWLINE# comment_count = entry . comments . count ( ) #NEWLINE# pingback_count = entry . pingbacks . count ( ) #NEWLINE# trackback_count = entry . trackbacks . count ( ) #NEWLINE# if ( entry . comment_count != comment_count ) : #NEWLINE# #INDENT# changed = True #NEWLINE# self . write_out ( ( '- %s comments found, %s before\n' % ( comment_count , entry . comment_count ) ) ) #NEWLINE# entry . comment_count = comment_count #NEWLINE# #UNINDENT# if ( entry . pingback_count != pingback_count ) : #NEWLINE# #INDENT# changed = True #NEWLINE# self . write_out ( ( '- %s pingbacks found, %s before\n' % ( pingback_count , entry . pingback_count ) ) ) #NEWLINE# entry . pingback_count = pingback_count #NEWLINE# #UNINDENT# if ( entry . trackback_count != trackback_count ) : #NEWLINE# #INDENT# changed = True #NEWLINE# self . write_out ( ( '- %s trackbacks found, %s before\n' % ( trackback_count , entry . trackback_count ) ) ) #NEWLINE# entry . trackback_count = trackback_count #NEWLINE# #UNINDENT# if changed : #NEWLINE# #INDENT# self . write_out ( '- Updating...\n' ) #NEWLINE# entry . save ( )