- Timestamp:
- 06/24/05 16:17:54 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r2303 r2323 353 353 overcharge = getattr(protoentry, "OverCharge", None) 354 354 355 missingusers = {} 356 missinggroups = {} 355 357 todelete = {} 356 358 changed = {} # tracks changes made at the user/group level … … 400 402 allentries = getattr(self.storage, "getPrinter%ssAndQuotas" % suffix)(printer, names) 401 403 404 # TODO : do this only once !!! 405 allnames = [entry.Name for (entry, dummy) in allentries] 406 for name in names : 407 if not self.matchString(name, allnames) : 408 if options["groups"] : 409 missinggroups[name] = 1 410 else : 411 missingusers[name] = 1 412 402 413 for (entry, entrypquota) in allentries : 403 414 if not changed.has_key(entry.Name) : … … 435 446 else : 436 447 self.printInfo(_("Invalid user name %s") % entry.Name) 448 else : 449 if options["groups"] : 450 missinggroups[entry.Name] = 1 451 else : 452 missingusers[entry.Name] = 1 437 453 elif options["delete"] : 438 454 todelete[entry.Name] = entry … … 490 506 self.printInfo(_("Group %s not found in the PyKota Storage.") % groupname) 491 507 508 # Now outputs the list of nonexistent users and groups 509 for name in missingusers.keys() : 510 self.printInfo(_("Nonnexistent user %s") % name, level="warn") 511 for name in missinggroups.keys() : 512 self.printInfo(_("Nonnexistent group %s") % name, level="warn") 513 492 514 # Now delete what has to be deleted 493 515 for (name, entry) in todelete.items() : -
pykota/trunk/NEWS
r2320 r2323 22 22 PyKota NEWS : 23 23 24 - 1.23alpha14 : 25 26 - Logs a warning when the user/group doesn't exist when running 27 edpykota. 28 24 29 - 1.23alpha13 : 25 30 -
pykota/trunk/pykota/version.py
r2320 r2323 22 22 # 23 23 24 __version__ = "1.23alpha1 3_unofficial"24 __version__ = "1.23alpha14_unofficial" 25 25 26 26 __doc__ = "PyKota : a complete Printing Quota Solution for CUPS and LPRng." -
pykota/trunk/TODO
r2317 r2323 22 22 TODO, in no particular order : 23 23 24 - Adds configurability to what happens when the user/group doesn't exist 25 when running edpykota. 26 24 27 - Add the listing of the member printers in pkprinters if the printer 25 28 is a printer group.