Changeset 813 for pykota/trunk

Show
Ignore:
Timestamp:
02/27/03 09:44:01 (22 years ago)
Author:
jalet
Message:

Check to see if the printer was ever used at all, and displays "unknown"
as the pagecounter value in this casCheck to see if the printer was ever used at all, and displays "unknown"
as the pagecounter value in this case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r805 r813  
    1717# 
    1818# $Log$ 
     19# Revision 1.13  2003/02/27 08:44:01  jalet 
     20# Check to see if the printer was ever used at all, and displays "unknown" 
     21# as the pagecounter value in this casCheck to see if the printer was ever used at all, and displays "unknown" 
     22# as the pagecounter value in this case. 
     23# 
    1924# Revision 1.12  2003/02/17 23:02:23  jalet 
    2025# getGraceDelay for printer 
     
    136141            if total :         
    137142                print (" " * 43) + (_("Total : %9i") % total) 
    138             print (" " * 44) + (_("Real : %9i") % printerpagecounter) 
     143            if printerpagecounter is None :     
     144                msg = "unknown" 
     145            else : 
     146                msg = "%9i" % printerpagecounter 
     147            print (" " * 44) + (_("Real : %s") % msg) 
    139148            print         
    140149