Changeset 2188

Show
Ignore:
Timestamp:
03/30/05 15:43:07 (20 years ago)
Author:
jerome
Message:

Fixes some case related problems with LDAP

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r2180 r2188  
    2424    - 1.22alpha3 : 
    2525     
     26        - Fixes some case related problems with some LDAP backends. 
     27         
    2628        - Fixes some problem for printers which directly go from 
    2729          "idle" to "warmup" and never to "printing" before 
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2147 r2188  
    680680            if result : 
    681681                (dn, fields) = result[0] 
    682                 fields["objectClass"].extend(["pykotaAccount", "pykotaAccountBalance"]) 
     682                oc = fields.get("objectClass", fields.get("objectclass", [])) 
     683                oc.extend(["pykotaAccount", "pykotaAccountBalance"]) 
    683684                fields.update(newfields) 
    684685                fields.update({ "pykotaBalance" : str(user.AccountBalance or 0.0), 
     
    736737            if result : 
    737738                (dn, fields) = result[0] 
    738                 fields["objectClass"].extend(["pykotaGroup"]) 
     739                oc = fields.get("objectClass", fields.get("objectclass", [])) 
     740                oc.extend(["pykotaGroup"]) 
    739741                fields.update(newfields) 
    740742                self.doModify(dn, fields)