From: <mi...@st...> - 2007-05-24 14:03:41
|
Alain Spineux wrote: > > On 5/24/07, *Michael Ströder* <mi...@st... > <mailto:mi...@st...>> wrote: > > Alain Spineux wrote: > > > > On 5/24/07, Michael Ströder <mi...@st... > <mailto:mi...@st...>> wrote: > >> > > And how about specials like '*' and '+' in attrlist? > > 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. => It's not worth hiding the conversion within python-ldap. > > I'start writin a wrapper for search() and modify() now. > > > > I send you my results as soon a possible. > > I'm not too keen to incorporate Unicode patches in python-ldap's > low-level API... > > not low-level > > Here is my work on progress > > class UnicodeLDAPObject(LDAPObject): Sorry, I consider ldap.ldapobject to be low-level. The only clean solution would be something involving LDAP schema processing! Ciao, Michael. |