Oleg Broytmann wrote:
> Hello!
>    Currently dtml-in does not use locale when sorting the sequence. Before
> creating a patch I want to discuss a way dtml-in should handle this. The
> problem is that list.sort() does not sort according to koi8-r cyrillic
> locale; to make sort locale-aware I need to list.sort(locale.strcoll).
>    But how I could ask dtml-in to use locale.strcoll? Should I add another
> option to dtml-in? Something like
>    <dtml-in somesequence sort=name use_locale> ?

I use <dtml-in "ru_sort( somesequence)">
A bit slower but works like hammer.


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to