Changeset 2737
- Timestamp:
- 02/21/06 17:04:13 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r2735 r2737 177 177 if options["add"] : 178 178 self.display("%s...\n" % _("Creation")) 179 mentries = getattr(self.storage, "getMatching%ss" % suffix)(",".join(names)) 180 if not mentries : 181 raise PyKotaCommandLineError, _("Impossible to create print quota entries if the user or group object doesn't exist first. Please use pkusers to create it.") 179 182 mprinters = self.storage.getMatchingPrinters(options["printer"]) 180 mentries = getattr(self.storage, "getMatching%ss" % suffix)(",".join(names))181 183 nbtotal = len(mprinters) * len(mentries) 182 184 i = 0 … … 269 271 nbtotal = len(pqentries) 270 272 i = 0 271 for pqentry in pqentries :273 for (pqkey, pqentry) in pqentries.items() : 272 274 ename = getattr(pqentry, suffix).Name 273 275 pname = pqentry.Printer.Name