[ZPT] CVS: Zope/lib/python/Products/PageTemplates - TALES.py:1.31.8.2

Lalo Martins lalo@laranja.org
Mon, 16 Sep 2002 15:39:10 -0300


On Mon, Sep 16, 2002 at 07:47:17PM +0200, Florent Guillaume wrote:
> Ok I'll remember that.
> 
> But there's no reason for this bug to be more prominent after my
> changes than before, I think.

There is.

<foo tal:define="something someobj/someprop">
...
  <bar tal:define="dummy python:request.setCookie('bleh', something)" />
...
</foo>

(just silly example code)

If now there is a chance that "something" is an unicode object, then ZServer
will blow to pieces in a very ugly way.

[]s,
                                               |alo
                                               +----
--
            Those who trade freedom for security
               lose both and deserve neither.
--
http://www.laranja.org/                mailto:lalo@laranja.org
         pgp key: http://www.laranja.org/pessoal/pgp

Eu jogo RPG! (I play RPG)         http://www.eujogorpg.com.br/
Python Foundry Guide http://www.sf.net/foundry/python-foundry/