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:[EMAIL PROTECTED]   |
===========================Debian=GNU/Linux===


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to