Show
Ignore:
Timestamp:
07/28/03 11:11:12 (21 years ago)
Author:
jalet
Message:

PyKota now tries to add its attributes intelligently in existing LDAP
directories.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r1089 r1105  
    2323# 
    2424# $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# 
    2529# Revision 1.54  2003/07/21 06:32:42  jalet 
    2630# Prevents email messages to be sent at modification/creation time for 
     
    445449                else :         
    446450                    self.logger.log_message(_("Prototype object %s not found in Quota Storage.") % protoentry.Name) 
     451                     
    447452            if not options["noquota"] :     
    448453                if hardlimit is None :     
     
    469474                    if not options["groups"] : 
    470475                        changed[entry.Name]["ingroups"] = [] 
    471                 if not entrypquota.Exists : 
     476                         
     477                if not entry.Exists :         
    472478                    # not found 
    473479                    if options["add"] : 
     
    477483                        # only remotely 
    478484                        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) 
    482486                        else :     
    483487                            if options["groups"] : 
     
    485489                            else :     
    486490                                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                         
    487497                if not entrypquota.Exists :      
    488498                    self.logger.log_message(_("Quota not found for object %s on printer %s.") % (entry.Name, printer.Name))