From: Michael E. <men...@ka...> - 2003-05-15 13:48:55
|
To encapsulate the application specific ldap functionality into a=20 single class as well as wrapping the basic add, modify, search, and=20 delete functionality. Obviously the add, modify and delete methods don't do anything really=20 more than what calling ldap directly does. Just makes my code tidier and easier to manage. On Thursday, May 15, 2003, at 02:51 AM, Michael Str=F6der wrote: > Michael Engelhart wrote: > > BTW, the LDAPWrapper is just simple wrapper class that I wrote. > > > > The add method looks like this: > > def add(self, dn, modlist): > > # synchronous add > > try: > > self.server.add_s(dn, modlist) > > except ldap.LDAPError, e: > > raise > > And what's the rationale for that? Well, it's up to you... > > Ciao, Michael. > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise=20 > solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |