[Zope] Re: utf-8 problem in Zope when using Localizer

2007-09-04 Thread Josef Meile

Install a separate python that is used only by your zope instance. Use
setdefaultencoding only there.



This is nonense. A custom sitecustomize.py script does the job without 
installing a complete new Python.

You need to read a previous reply:

I set it global in sitecustomize.py under 
/usr/lib/python2.4/site-packages and then



dtml-var MessageCatalog('Hallo Welt!')

works. Now I only must find the right place for setdefaultencoding() so
it only affect my zope-instance.
For the path used there /usr/lib/python2.4/site-packages, it seems
that the python used by zope is a binary that comes into a rpm package,
so, this may break some things on the OS. So, I guess a new python for
only zope makes sense here
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: utf-8 problem in Zope when using Localizer

2007-09-04 Thread Dieter Maurer
Josef Meile wrote at 2007-9-4 09:31 +0200:
 Install a separate python that is used only by your zope instance. Use
 setdefaultencoding only there.

 
 This is nonense. A custom sitecustomize.py script does the job without 
 installing a complete new Python.
You need to read a previous reply:

 I set it global in sitecustomize.py under 
 /usr/lib/python2.4/site-packages and then
 
 
 dtml-var MessageCatalog('Hallo Welt!')
 
 works. Now I only must find the right place for setdefaultencoding() so
 it only affect my zope-instance.
For the path used there /usr/lib/python2.4/site-packages, it seems
that the python used by zope is a binary that comes into a rpm package,
so, this may break some things on the OS. So, I guess a new python for
only zope makes sense here

There is no need to put sitecustomize.py in the global
Python distribution. Any place on the PYTHONPATH as effective
when Python starts is sufficient.

We ensure that $INSTANCE_HOME/lib/python is on this path
and then can put sitecustomize.py there.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )