From: <mi...@st...> - 2002-12-17 15:19:53
|
Steffen Ries wrote: > Michael Str=F6der <mi...@st...> writes: >=20 > >Anyone in favour of re-enabling method set_rebind_proc()? >=20 > Well, I am. >=20 > To be exact. I am interested in the functionality provided by > set_rebind_proc, not necessarily in its implementation. This translates to: No problem to remove the related code from LDAPObject= =2Ec. >>It has been disabled quite a while ago and I would like to remove >>the code from LDAPObject.c. Callbacks are pretty un-pythonic and the >>functionality can be better achieved in a Python wrapper class. >=20 > The last time I looked into this issue, I did not see an easy way how > to build a wrapper class which encapsulates the rebinding. Do you > have more ideas in this direction? I'm not sure when I'll find the > time to work on this, but I may be able to contribute an > implementation. Derive from ldap.ldapobject.LDAPObject and override all the relevant meth= ods. I have a bunch of ideas like this. But I have to make up my mind how to=20 implement these without stacking to many classes above each other. Maybe = some kind of mix-in classes would help. One could think of a registration dictionary for exception handlers. > I currently use an implementation that is backward compatible with > OpenLDAP 1.x. You're own your own with that. > I didn't find any python-ldap-2.x > package for windows. Contributions welcome. Ciao, Michael. |