Commit 6bcc62ff authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type/patches: simplify default_zpublisher_encoding patch

Instead of doing what loading zope.conf does (which is different
across zope versions), use the ZConfig configuration callback.
parent f5e82460
Pipeline #20873 failed with stage
in 0 seconds
...@@ -26,11 +26,7 @@ ...@@ -26,11 +26,7 @@
# #
############################################################################## ##############################################################################
import ZPublisher.HTTPRequest import Zope2.Startup.datatypes
import ZPublisher.HTTPResponse
import ZPublisher.Converters
# Force (do not depend on) the default-zpublisher-encoding setting of zope.conf # Force (do not depend on) the default-zpublisher-encoding setting of zope.conf
ZPublisher.HTTPRequest.default_encoding = 'utf-8' Zope2.Startup.datatypes.default_zpublisher_encoding('utf-8')
ZPublisher.HTTPResponse.default_encoding = 'utf-8'
ZPublisher.Converters.default_encoding = 'utf-8'
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