Hi, I installed Zope 2.6.0b1 with PyXML and all the AltTAL-Stuff needed for a i18n-Plone-Site. It works kind of, I can see translated menues, navigate around, but I cannot create new content. If I add a new document nothing happens. Only on the console, where I started zope, I get this error message. Unhandled exception in thread: Traceback (most recent call last): File "/home/ploneuser/Zope-2.6.0b1-src/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__ response=response) File "/home/ploneuser/Zope-2.6.0b1-src/lib/python/ZPublisher/Publish.py", line 166, in publish_module outputBody() File "/home/ploneuser/Zope-2.6.0b1-src/lib/python/ZPublisher/BaseResponse.py", line 57, in outputBody self.stdout.write(str(self)) File "/home/ploneuser/Zope-2.6.0b1-src/ZServer/HTTPResponse.py", line 133, in __str__ return "\r\n".join(headersl) UnicodeError: ASCII decoding error: ordinal not in range(128) Do I have to patch zope 2.6.0 with something? TIA juh
Maybe try to set Pythons default encoding to iso-8859-15 in sitecustomize.py. -aj --On Dienstag, 15. Oktober 2002 08:44 +0200 Jan Ulrich Hasecke <janulrich.hasecke@web.de> wrote:
Hi,
I installed Zope 2.6.0b1 with PyXML and all the AltTAL-Stuff needed for a i18n-Plone-Site.
It works kind of, I can see translated menues, navigate around, but I cannot create new content.
If I add a new document nothing happens.
Only on the console, where I started zope, I get this error message.
Unhandled exception in thread: Traceback (most recent call last): File "/home/ploneuser/Zope-2.6.0b1-src/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__ response=response) File "/home/ploneuser/Zope-2.6.0b1-src/lib/python/ZPublisher/Publish.py", line 166, in publish_module outputBody() File "/home/ploneuser/Zope-2.6.0b1-src/lib/python/ZPublisher/BaseResponse.py", line 57, in outputBody self.stdout.write(str(self)) File "/home/ploneuser/Zope-2.6.0b1-src/ZServer/HTTPResponse.py", line 133, in __str__ return "\r\n".join(headersl) UnicodeError: ASCII decoding error: ordinal not in range(128)
Do I have to patch zope 2.6.0 with something?
TIA juh
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
Andreas Jung <andreas@andreas-jung.com> writes:
Maybe try to set Pythons default encoding to iso-8859-15 in sitecustomize.py.
I cannot find this file in my python (2.1.3) Ciao! juh -- Das GenerationenProjekt Ein halbes Jahrhundert in HYPERTEXT http://www.generationenprojekt.de/
I think this file is optional and Python tries to read it during startup for custom settings. I *think* it is sufficient to put it somewhere in your PYTHONPATH: import sys sys.setdefaultencoding("iso-8859-15") Andreas --On Dienstag, 15. Oktober 2002 10:26 +0200 Jan Ulrich Hasecke <janulrich.hasecke@web.de> wrote:
Andreas Jung <andreas@andreas-jung.com> writes:
Maybe try to set Pythons default encoding to iso-8859-15 in sitecustomize.py.
I cannot find this file in my python (2.1.3)
Ciao! juh
-- Das GenerationenProjekt Ein halbes Jahrhundert in HYPERTEXT http://www.generationenprojekt.de/
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
Andreas Jung <lists@andreas-jung.com> writes:
import sys sys.setdefaultencoding("iso-8859-15")
Thanks, that works. I get this error while compiling the file /home/zopeuser/local/bin/python sitecusto\ mize.py Traceback (most recent call last): File "sitecustomize.py", line 2, in ? sys.setdefaultencoding("iso-8859-15") AttributeError: 'sys' module has no attribute 'setdefaultencoding' But it works anyway. Ciao! juh -- Zwangsarbeiterentschädigung: Almosen statt Strafgericht http://www.sudelbuch.de/2001/20010309.html
I installed Zope 2.6.0b1 with PyXML and all the AltTAL-Stuff needed for a i18n-Plone-Site.
It works kind of, I can see translated menues, navigate around, but I cannot create new content.
If I add a new document nothing happens.
Only on the console, where I started zope, I get this error message.
This error is caused by this bug: http://collector.zope.org/Zope/561 I dont know the workaround for it though, anyone else? -- /Magnus
participants (4)
-
Andreas Jung -
Andreas Jung -
Jan Ulrich Hasecke -
Magnus Heino