Any example of Server/Client Side Sorting?

Michael Ströder michael at stroeder.com
Fri May 15 10:56:47 CEST 2009


Zhang Huangbin wrote:
> Michael Ströder wrote:
>> Compare function for case-insensitive comparison of the DN:
>>
>> cmp=lambda x,y: cmp(x[0].lower(), y[0}.lower())
> 
> I tried this compare function, but got this err msg:

Sorry, there's a typo in there:

cmp=lambda x,y: cmp(x[0].lower(), y[0}.lower())
                                     ^
Should be ]

Ciao, Michael.



More information about the python-ldap mailing list