Changeset 2106 for pykota

Show
Ignore:
Timestamp:
02/25/05 15:31:07 (20 years ago)
Author:
jalet
Message:

Improved robustness

Files:
1 modified

Legend:

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

    r2057 r2106  
    2222# 
    2323# $Log$ 
     24# Revision 1.102  2005/02/25 14:31:07  jalet 
     25# Improved robustness 
     26# 
    2427# Revision 1.101  2005/02/13 22:48:37  jalet 
    2528# Added the md5sum to the history 
     
    635638        result = self.doSearch(ldapfilter, ["pykotaUserName"], base=self.info["userbase"]) 
    636639        if result : 
    637             usernames = [record[1]["pykotaUserName"][0] for record in result] 
     640            usernames = filter(None, [record[1].get("pykotaUserName", [None])[0] for record in result]) 
    638641        return usernames 
    639642