Missing method in ldap.cidict

2008-03-11 Thread James Andrewartha
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 --

Re: Missing method in ldap.cidict

2008-03-11 Thread Michael Ströder
James Andrewartha wrote: > > 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 for reporting it