Changeset 890 for pykota/trunk/bin/repykota
- Timestamp:
- 04/08/03 23:10:18 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/repykota
r873 r890 23 23 # 24 24 # $Log$ 25 # Revision 1.18 2003/04/08 21:10:18 jalet 26 # Checks --groups option presence instead of --users because --users is the default. 27 # 25 28 # Revision 1.17 2003/03/29 13:45:27 jalet 26 29 # GPL paragraphs were incorrectly (from memory) copied into the sources. … … 147 150 print _("Pages grace time: %idays") % self.config.getGraceDelay(printer) 148 151 total = 0 149 if options["users"] : 152 if options["groups"] : 153 print _("Group used soft hard grace total") 154 print "------------------------------------------------------------" 155 for name in self.storage.getPrinterGroups(printer) : 156 quota = self.storage.getGroupPQuota(name, printer) 157 total += self.printQuota(name, quota) 158 else : 159 # default is user quota report 150 160 print _("User used soft hard grace total") 151 161 print "------------------------------------------------------------" 152 162 for name in self.storage.getPrinterUsers(printer) : 153 163 quota = self.storage.getUserPQuota(name, printer) 154 total += self.printQuota(name, quota)155 else :156 print _("Group used soft hard grace total")157 print "------------------------------------------------------------"158 for name in self.storage.getPrinterGroups(printer) :159 quota = self.storage.getGroupPQuota(name, printer)160 164 total += self.printQuota(name, quota) 161 165 if total :