Setting options via class attributes of LDAPObject

Jens Vagelpohl jens at zope.com
Thu Jul 25 18:45:08 CEST 2002


+1

IMHO direct attribute access without going through methods is nasty

jens


On Thursday, July 25, 2002, at 11:34 , Michael Ströder wrote:

> HI!
>
> I'd like to remove the possibility to set/get LDAP options via class 
> attributes of ldap.LDAPObject instances since it's error-prone and kludgy 
> code.
>
> LDAPObject.set_option() and LDAPObject.get_option() is the complete 
> solution.
>
> Although it might break existing code if I remove 
> LDAPObject.__setattr__() and LDAPObject.__getattr__(). Therefore I'd like 
> to ask who is setting LDAP options via class attributes?
>
> Ciao, Michael.






More information about the python-ldap mailing list