From: Alain S. <asp...@gm...> - 2007-05-24 14:50:16
|
On 5/24/07, Michael Str=F6der <mi...@st...> wrote: > > Alain Spineux wrote: > > > > On 5/24/07, *Michael Str=F6der* <mi...@st... > > <mailto:mi...@st...>> wrote: > > > > Thanks for showing me my ignorance. I was not knowing about * and + ! > > Easy, only named attributes will be converted! > > In this case maybe is it possible to use [ '*', u'givenName', u'sn' ] > > to convert only 'givenName' and 'sn' > > But then you will not gain much! Still the application has to know which > attributes have to be converted. =3D> It's not worth hiding the conversio= n > within python-ldap. I don't spend too much then I dont't expect too much too :-) Are you using often '+' and '*' (in real application, not ldap browser, no= r editor tools) ? And that way, user keep control with explicit conversion. > > > class UnicodeLDAPObject(LDAPObject): > > Sorry, I consider ldap.ldapobject to be low-level. :-( The only clean solution would be something involving LDAP schema processing= ! Yes but what about unknown field type ? Ciao, Michael. > Your remarks help me, don't hesitate to share your feeling. --=20 -- Alain Spineux aspineux gmail com May the sources be with you |