ldap.set_option() ready

Michael Ströder michael at stroeder.com
Wed Nov 14 00:59:55 CET 2001


Joe Little wrote:
> 
> It seems that to date, the python-ldap API has mirrored that of the
> c-API, but also provided an LDAP object wrapper.
> 
> I think is correct as well as ideal for us to support both the
> set_option() method in the direct API, but for object-oriented purposes
> provide an internal mechanism that calls the set_option using set_attr
> and get_attr syntax.

Since experience of the last months shows that most people on this
list don't like to muck out old C code I'd prefer to keep it as lean
as possible.

It's trivial to write a Python object wrapper around it which maps
set_option() to __setattr__().

Ciao, Michael.




More information about the python-ldap mailing list