Missing method in ldap.cidict

James Andrewartha jamesa at daa.com.au
Tue Mar 11 13:43:44 CET 2008


Hi,

The cidict class needs the following method for "attr in cidict" to work
properly:

  def __contains__(self,key):
    return self.has_key(key)

Otherwise it defaults to using the UserDict __contains__ which isn't
case-insensitive.

Thanks,

James Andrewartha




More information about the python-ldap mailing list