[Pkg-zope-developers] Bug#329380: zope2.7.8: Bug with the function
strcoll_nocase
Frédéric Massot
frederic at juliana-multimedia.com
Wed Nov 16 14:58:57 UTC 2005
Hi,
I updated zope2.7 from version 2.7.5-2 to 2.7.8-1, and I always have
same the bug. The locale module is not imported in the file
"/usr/lib/zope2.7/lib/python/DocumentTemplate/sequence/SortEx.py".
Below the patch :
$ diff -up SortEx.py.ori SortEx.py
--- SortEx.py.ori 2005-11-16 15:12:10.000000000 +0100
+++ SortEx.py 2005-11-16 15:15:18.000000000 +0100
@@ -134,6 +134,7 @@ def nocase(str1, str2):
return cmp(str1.lower(), str2.lower())
import sys
+import locale
if sys.modules.has_key("locale"): # only if locale is already imported
from locale import strcoll
Regards.
--
==============================================
| FREDERIC MASSOT |
| http://www.juliana-multimedia.com |
| mailto:frederic at juliana-multimedia.com |
===========================Debian=GNU/Linux===
More information about the Pkg-zope-developers
mailing list