Changeset 734 for pykota/trunk

Show
Ignore:
Timestamp:
02/07/03 09:38:36 (22 years ago)
Author:
jalet
Message:

Missing conversion.
empty line between two printers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r733 r734  
    1717# 
    1818# $Log$ 
     19# Revision 1.5  2003/02/07 08:38:36  jalet 
     20# Missing conversion. 
     21# empty line between two printers 
     22# 
    1923# Revision 1.4  2003/02/07 08:34:15  jalet 
    2024# Test wrt date limit was wrong 
     
    97101            if options["users"] : 
    98102                print "User            used    soft    hard  grace" 
    99                 print "------------------------------------------------" 
     103                print "-----------------------------------------------" 
    100104                for name in self.storage.getPrinterUsers(printer) : 
    101105                    quota = self.storage.getUserPQuota(name, printer) 
     
    103107            else : 
    104108                print "Group           used    soft    hard  grace" 
    105                 print "------------------------------------------------" 
     109                print "-----------------------------------------------" 
    106110                for name in self.storage.getPrinterGroups(printer) : 
    107111                    quota = self.storage.getGroupPQuota(name, printer)  
    108112                    self.printQuota(name, quota) 
     113            print         
    109114                         
    110115    def printQuota(self, name, quota) : 
     
    123128                datelimit = "" 
    124129            reached = ((pagecounter >= softlimit) and "+") or "-" 
    125             print "%-10.10s %c %7i %7i %7i %s" % (name, reached, pagecounter, softlimit, hardlimit, datelimit[:10]) 
     130            print "%-10.10s %c %7i %7i %7i %s" % (name, reached, pagecounter, softlimit, hardlimit, str(datelimit)[:10]) 
    126131         
    127132