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 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -88,8 +85,8 @@ uid = context.getUid()\n
url = context.absolute_url()\n
title = context.getTitle() or (hasattr(context, \'getReference\') and context.getReference()) or context.getId()\n
portal_type = context.getTranslatedPortalType()\n
website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n
popup = context.Document_getPopupInfo(context.REQUEST.get(\'current_web_site\')) or \'\'\n
website = context.REQUEST.get(\'current_web_site\', context.getWebSiteValue())\n
popup = (context.Document_getPopupInfo(website) or \'\').encode(\'utf-8\')\n
\n
found = context.Base_showFoundText()\n
owner_html = getOwnerHTML(context) or \'\'\n
......
869
\ No newline at end of file
870
\ 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