- ############################################################################
- ### Functions for the printing system
- ############################################################################
-
- def print_prog_header(self):
- if self.options.quiet:
- return
-
- print 'Regular Expression File Sorter (aka animesorter)'
- print '================================================================================'
- print 'Copyright (c) 2005,2006, Ira W. Snyder (devel@irasnyder.com)'
- print 'All rights reserved.'
- print 'This program is licensed under the GNU GPL v2'
- print
-
- def print_move_file_suc(self, f, t):
- if self.options.quiet:
- return
-
- print 'Moved %s to %s' % (f, t)
-
- def print_move_file_fail(self, f, t):
- print 'FAILED to move %s to %s' % (f, t)
-
- def print_move_file_pretend (self, f, t):
- print 'Will move %s to %s' % (f, t)
-
- def print_dir_create_suc(self, d):
- if self.options.quiet:
- return
-
- print 'Created directory %s' % (d, )
-
- def print_dir_create_fail(self, d):
- print 'Failed to create directory %s' % (d, )
-
- def print_dir_create_pretend (self, d):
- print 'Will create directory %s' % (d, )
-
- def print_dict_suc(self, dic, num):
- if self.options.quiet:
- return
-
- print 'Successfully loaded %d records from %s\n' % (num, dic)
-
- def print_dict_fail(self, dic):
- print 'Opening dictionary: %s FAILED' % (dic, )
-
- def print_dict_bad_line(self, dic):
- print 'Bad line in dictionary: %s' % (dic, )
-
-