ldap.schema: str2objectclass() fails

Michael Ströder michael at stroeder.com
Thu Aug 1 11:40:29 CEST 2002

Hans Aschauer wrote:
> On Mittwoch, 31. Juli 2002 16:46, Michael Ströder wrote:
>>Hans Aschauer wrote:
>>>This a really easy approach to the problem. Should I commit that
> Done. Including the patch for schema.py. It works for me, but, as 
> always, please test it!

Seems to work.

The assertion

   assert res in ERRCODE2SCHERR.keys()

is not necessary since we use ERRCODE2SCHERR.get(res,SchemaError) 
to use the base-class in case of unknown error code. I expect the 
OpenLDAP project to add new error codes without us keeping up with 
it. ;-)

Ciao, Michael.

More information about the python-ldap mailing list