Hello,  I worked on getting the Unicode stuff working on my dev
environment running the regular pylons server etc..  Now I'm running
it on production with a SCGI - Lighttpd configuration, and I get the
following errors when my templates try to render.  I narrowed it down
to a particular line in my environment.py file to the following:

tmpl_options = {}
tmpl_options['myghty.log_errors'] = True
tmpl_options['myghty.escapes'] = dict(l=webhelpers.auto_link,
s=webhelpers.simple_format)
tmpl_options['mako.input_encoding'] = 'UTF-8'
tmpl_options['mako.output_encoding'] = 'UTF-8'

----> request_settings = dict(charset='utf-8', errors='replace')
<----

I get the following error on a template:

<!-- The above is a description of an error in a Python program,
formatted
25 for a Web browser because the 'cgitb' module was enabled. In case
you
26 are not reading this in a Web browser, here is the original
traceback:
27
28Traceback (most recent call last):
29 File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/
server/scgi_base.py", line 185, in run
30 File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/
server/scgi_base.py", line 460, in handler
31 File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/
server/scgi_base.py", line 402, in write
32AssertionError: write() argument must be string
33
34-->

Any help would be appreciated.

Sam.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to