Schema-API
Michael Ströder
michael at stroeder.com
Thu Aug 8 09:23:58 CEST 2002
Jens Vagelpohl wrote:
> the problem is in the cidict class. when you call "get" then the method
> "get" on UserDict gets called - which has no lowercasing of the name you
> ask for.
Nothing wrong with that.
See UserDict.py:
def get(self, key, failobj=None):
if not self.has_key(key):
return failobj
return self[key]
Method UserDict.get() calls self.__getitem__(). I've added two
test cases to ldap.cidict as proof that this works correctly.
Ciao, Michael.
More information about the python-ldap
mailing list