Show
Ignore:
Timestamp:
06/15/06 07:39:37 (7 years ago)
Author:
mk
Message:

Unified Cheesecake score formatting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/cheesecake/cheesecake_index.py

    r44 r57  
    2525from math import ceil 
    2626 
    27 from _util import pad_with_dots, pad_left_spaces, pad_msg, pad_line 
     27from _util import pad_with_dots, pad_left_spaces, pad_right_spaces, pad_msg, pad_line 
    2828from _util import run_cmd, command_successful 
    2929from _util import unzip_package, untar_package 
     
    326326 
    327327    def _print_info_one(self): 
    328         print "%s%s (%s)" % (pad_with_dots(self.name), 
    329                              pad_left_spaces(self.value), 
    330                              self.details) 
     328        print "%s  (%s)" % (pad_msg(self.name, self.value), self.details) 
    331329 
    332330    def _print_info_many(self): 
     
    340338        print pad_msg("%s INDEX (ABSOLUTE)" % self.name, self.value) 
    341339        msg = pad_msg("%s INDEX (RELATIVE)" % self.name, percentage) 
    342         msg += " (%d out of a maximum of %d points is %d%%)" %\ 
     340        msg += " (%d out of a maximum of %d points is %d%%)" %\ 
    343341             (self.value, max_value, percentage) 
    344342 
     
    11441142        print pad_line("=") 
    11451143        print pad_msg("OVERALL CHEESECAKE INDEX (ABSOLUTE)", cheesecake_index) 
    1146         print "%s (%d out of a maximum of %d points is %d%%)" % \ 
     1144        print "%s (%d out of a maximum of %d points is %d%%)" % \ 
    11471145              (pad_msg("OVERALL CHEESECAKE INDEX (RELATIVE)", percentage), 
    11481146               cheesecake_index,