Changeset 734 for pykota/trunk/bin
- Timestamp:
- 02/07/03 09:38:36 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/repykota
r733 r734 17 17 # 18 18 # $Log$ 19 # Revision 1.5 2003/02/07 08:38:36 jalet 20 # Missing conversion. 21 # empty line between two printers 22 # 19 23 # Revision 1.4 2003/02/07 08:34:15 jalet 20 24 # Test wrt date limit was wrong … … 97 101 if options["users"] : 98 102 print "User used soft hard grace" 99 print "----------------------------------------------- -"103 print "-----------------------------------------------" 100 104 for name in self.storage.getPrinterUsers(printer) : 101 105 quota = self.storage.getUserPQuota(name, printer) … … 103 107 else : 104 108 print "Group used soft hard grace" 105 print "----------------------------------------------- -"109 print "-----------------------------------------------" 106 110 for name in self.storage.getPrinterGroups(printer) : 107 111 quota = self.storage.getGroupPQuota(name, printer) 108 112 self.printQuota(name, quota) 113 print 109 114 110 115 def printQuota(self, name, quota) : … … 123 128 datelimit = "" 124 129 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]) 126 131 127 132