ldap.schema: str2objectclass() fails

Michael Ströder michael at stroeder.com
Wed Jul 31 16:46:28 CEST 2002


Hans Aschauer wrote:
> On Dienstag, 30. Juli 2002 22:20, Michael Ströder wrote:
> 
>>Michael Ströder wrote:
>>
>>>Frankly I'd prefer to check the numerical error code in
>>>ldap.schema.str2objectclass() and the other wrapper functions and
>>>raise Python-declared exceptions instead of create the exception
>>>instances in Modules/schema.c.
>>
>>How about this approach assuming _ldap.str2objectclass() only
>>returns a error code as integer in case of an error?
> 
> 
> [...]
> 
> This a really easy approach to the problem. Should I commit that patch?

Yes!

Ciao, Michael.







More information about the python-ldap mailing list