From 6296d8813b4b9e174229c32075d16a9f42c024ca Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Tue, 22 Sep 2015 08:34:25 -0400 Subject: [PATCH] [#2636] comment for the scary stuff --- ckan/pastertemplates/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckan/pastertemplates/__init__.py b/ckan/pastertemplates/__init__.py index eea0ebe6923..8277b33e2b3 100644 --- a/ckan/pastertemplates/__init__.py +++ b/ckan/pastertemplates/__init__.py @@ -51,6 +51,8 @@ class CkanextTemplate(Template): def check_vars(self, vars, cmd): vars = Template.check_vars(self, vars, cmd) + # workaround for a paster issue https://github.com/ckan/ckan/issues/2636 + # this is only used from a short-lived paster command reload(sys) sys.setdefaultencoding('utf-8')