Commit 17dd2cb5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we need encode('utf-8') here, because the output of PageTemplate is unicode, not str in Zope-2.12.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38935 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7ef3652
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -88,8 +85,8 @@ uid = context.getUid()\n ...@@ -88,8 +85,8 @@ uid = context.getUid()\n
url = context.absolute_url()\n url = context.absolute_url()\n
title = context.getTitle() or (hasattr(context, \'getReference\') and context.getReference()) or context.getId()\n title = context.getTitle() or (hasattr(context, \'getReference\') and context.getReference()) or context.getId()\n
portal_type = context.getTranslatedPortalType()\n portal_type = context.getTranslatedPortalType()\n
website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n website = context.REQUEST.get(\'current_web_site\', context.getWebSiteValue())\n
popup = context.Document_getPopupInfo(context.REQUEST.get(\'current_web_site\')) or \'\'\n popup = (context.Document_getPopupInfo(website) or \'\').encode(\'utf-8\')\n
\n \n
found = context.Base_showFoundText()\n found = context.Base_showFoundText()\n
owner_html = getOwnerHTML(context) or \'\'\n owner_html = getOwnerHTML(context) or \'\'\n
......
869 870
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment