You shouldn't be messing with locale in a Zope product. In a threaded
Python app, setting locale affects all threads, and there are a number
of parts in Zope which depend on correct locale information. You should
respect whatever locale was set in Zope initialization (by environment
vars or thru the -L parameter)

Why do you want to change the locale anyway?

On Fri, 2002-02-08 at 12:33, Igor Stroh wrote:
> are there any known problems with zope 2.5.0 and locale module? This piece
> of code [1] produces an error when I try to refresh/install a product that
> contains the code, though it works just fine if I just execute it in the
> python shell. The same product works well in zope 2.4.2...
> [1]:
> import locale
> locale.setlocale(locale.LC_ALL, '')

Ideas don't stay in some minds very long because they don't like
solitary confinement.

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

Reply via email to