Changeset 733 for pykota/trunk/bin
- Timestamp:
- 02/07/03 09:34:16 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/repykota
r732 r733 17 17 # 18 18 # $Log$ 19 # Revision 1.4 2003/02/07 08:34:15 jalet 20 # Test wrt date limit was wrong 21 # 19 22 # Revision 1.3 2003/02/07 00:08:52 jalet 20 23 # Typos … … 94 97 if options["users"] : 95 98 print "User used soft hard grace" 96 print "------------------------------------------------ -----------"99 print "------------------------------------------------" 97 100 for name in self.storage.getPrinterUsers(printer) : 98 101 quota = self.storage.getUserPQuota(name, printer) … … 100 103 else : 101 104 print "Group used soft hard grace" 102 print "------------------------------------------------ -----------"105 print "------------------------------------------------" 103 106 for name in self.storage.getPrinterGroups(printer) : 104 107 quota = self.storage.getGroupPQuota(name, printer) … … 115 118 now = DateTime.now() 116 119 datelimit = DateTime.ISO.ParseDateTime(datelimit) 117 if datelimit <= now:120 if now >= datelimit : 118 121 datelimit = "DENY" 119 122 else : 120 123 datelimit = "" 121 124 reached = ((pagecounter >= softlimit) and "+") or "-" 122 print "%-10.10s %c %7i %7i %7i %s" % (name, reached, pagecounter, softlimit, hardlimit, datelimit )125 print "%-10.10s %c %7i %7i %7i %s" % (name, reached, pagecounter, softlimit, hardlimit, datelimit[:10]) 123 126 124 127