Changeset 1119

Show
Ignore:
Timestamp:
08/20/03 17:56:24 (21 years ago)
Author:
jalet
Message:

Better user and group deletion

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r1113 r1119  
    2121# 
    2222# $Log$ 
     23# Revision 1.25  2003/08/20 15:56:24  jalet 
     24# Better user and group deletion 
     25# 
    2326# Revision 1.24  2003/07/29 20:55:17  jalet 
    2427# 1.14 is out ! 
     
    717720                    for i in todelete : 
    718721                        del fields[k][i] 
    719             if "objectclass" in [key.lower() for key in fields.keys()] :             
     722            if fields.get("objectClass") or fields.get("objectclass") : 
    720723                self.doModify(user.ident, fields, ignoreold=0)         
    721724            else :     
     
    745748                    for i in todelete : 
    746749                        del fields[k][i] 
    747             if "objectclass" in [key.lower() for key in fields.keys()] :             
     750            if fields.get("objectClass") or fields.get("objectclass") : 
    748751                self.doModify(group.ident, fields, ignoreold=0)         
    749752            else :