Thank's, but can one say me why this is not working:
class Charset:
def __init__(self):
web.header("Content-Type","text/html; charset=iso-8859-15")
class Work(Charset):
def __init__(self):
Charset.__inti__(self)
def GET(self):
web.render(theTemplate)
I'm using flup 0.5 for the session management and using this code,
flup generates the following error
Unhandled exception in thread started by <bound method Request.run of
<flup.server.fcgi_base.Request obTraceback (most recent call last):
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 570, in run
self._flush()
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 577, in _flush
self.stdout.close()
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 336, in close
self._conn.writeRecord(rec)
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 831, in writeRecord
rec.write(self._sock)
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 530, in write
self._sendall(sock, header)
File "/usr/lib/python2.4/site-packages/flup/server/fcgi_base.py",
line 507, in _sendall
sent = sock.send(data)
socket.error: (32, 'Broken pipe')
Regards
Erwin
On Jul 23, 5:44 pm, Marcin Benke <[EMAIL PROTECTED]> wrote:
> The following works for me:
>
> class index:
> def GET(self):
> web.header("Content-Type","text/html; charset=iso-8859-2")
> web.cheetah.render('MainPage.tmpl')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---