unicode value

Michael Ströder michael at stroeder.com
Thu May 24 16:00:24 CEST 2007


Alain Spineux wrote:
> 
> On 5/24/07, *Michael Ströder* <michael at stroeder.com
> <mailto:michael at stroeder.com>> wrote:
> 
>     Alain Spineux wrote:
>     >
>     > On 5/24/07, Michael Ströder <michael at stroeder.com
>     <mailto:michael at stroeder.com>> 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.



More information about the python-ldap mailing list