[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage - ZPTPage.py:1.3

Jim Fulton jim@zope.com
Wed, 03 Jul 2002 14:21:14 -0400


Martijn Faassen wrote:
> Jim Fulton wrote:
> 
>>Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage
>>In directory cvs.zope.org:/tmp/cvs-serv8118
>>
>>Modified Files:
>>	ZPTPage.py 
>>Log Message:
>>Added code to encode unicode editing input to utf-8 because page
>>templates expect string text.
>>
>>This was necessary to make editing work.
>>
> 
> But in my opinion eventually ZPT should just work with Unicode instead.
> (last I checked there was a single str() in there..)

Agreed. But we needed to do *something* to make ZPT pages work.
I'm already down the service/package rabbit hole. I don't have time
to jump down another one now. If someone wants to sort this out the
right way, I'm all for it. :)


> If not, we have a problem with Zope 3 as our content is going to be
> stored at Unicode. The right place to convert to anything 8-bit is
> after the page template did its work.

Still agreed.

Please feel free to fix this another way. It might not
hard to fix.

> This is just me trying to play unicode watchdog. :)

Thanks. That's good.

Jim

-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org