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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


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. It's already in the CVS but not in a release yet.


revision 1.11
date: 2007/12/26 11:49:25;  author: stroeder;  state: Exp;  lines: +5 -2
New method ldap.cidict.cidict.__contains__()


Ciao, Michael.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev