zopefoundation / Products.PythonScripts

Provides support for restricted execution of Python scripts in Zope.
Other
6 stars 10 forks source link

Make sure a template's ``_body`` attribute is a native string in Python 3 #31

Closed dataflake closed 5 years ago

dataflake commented 5 years ago

Fixes #30

In a customer migration I am having issues with scripts that have a encoded binary string _body after the zodbupdate run and break. Just by eyeballing the code that attribute is apparently expected to be a native string.

This PR adds a zodbupdate policy for decoding it.