Changeset 1105 for pykota/trunk/bin
- Timestamp:
- 07/28/03 11:11:12 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r1089 r1105 23 23 # 24 24 # $Log$ 25 # Revision 1.55 2003/07/28 09:11:12 jalet 26 # PyKota now tries to add its attributes intelligently in existing LDAP 27 # directories. 28 # 25 29 # Revision 1.54 2003/07/21 06:32:42 jalet 26 30 # Prevents email messages to be sent at modification/creation time for … … 445 449 else : 446 450 self.logger.log_message(_("Prototype object %s not found in Quota Storage.") % protoentry.Name) 451 447 452 if not options["noquota"] : 448 453 if hardlimit is None : … … 469 474 if not options["groups"] : 470 475 changed[entry.Name]["ingroups"] = [] 471 if not entrypquota.Exists : 476 477 if not entry.Exists : 472 478 # not found 473 479 if options["add"] : … … 477 483 # only remotely 478 484 if self.isValidName(entry.Name) : 479 if not entry.Exists : 480 entry = getattr(self.storage, "add%s" % suffix)(entry) 481 entrypquota = getattr(self.storage, "add%sPQuota" % suffix)(entry, printer) 485 entry = getattr(self.storage, "add%s" % suffix)(entry) 482 486 else : 483 487 if options["groups"] : … … 485 489 else : 486 490 self.logger.log_message(_("Invalid user name %s") % entry.Name) 491 492 if not entrypquota.Exists : 493 # not found 494 if options["add"] : 495 entrypquota = getattr(self.storage, "add%sPQuota" % suffix)(entry, printer) 496 487 497 if not entrypquota.Exists : 488 498 self.logger.log_message(_("Quota not found for object %s on printer %s.") % (entry.Name, printer.Name))