@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json | |||||
from .exceptions import * | from .exceptions import * | ||||
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template | from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template | ||||
__version__ = '9.2.4' | |||||
__version__ = '9.2.5' | |||||
__title__ = "Frappe Framework" | __title__ = "Frappe Framework" | ||||
local = Local() | local = Local() | ||||
@@ -30,9 +30,6 @@ def make_xlsx(data, sheet_name, wb=None): | |||||
else: | else: | ||||
value = item | value = item | ||||
if isinstance(value, basestring): | |||||
value = value.encode('unicode_escape').decode('utf-8') | |||||
clean_row.append(value) | clean_row.append(value) | ||||
ws.append(clean_row) | ws.append(clean_row) | ||||
@@ -369,7 +369,7 @@ window.web_form_settings = { | |||||
<script type="text/javascript" src="/assets/js/web_form.min.js"></script> | <script type="text/javascript" src="/assets/js/web_form.min.js"></script> | ||||
<script> | <script> | ||||
{% if script is defined %} | {% if script is defined %} | ||||
{{ script.decode('utf-8') }} | |||||
{{ script }} | |||||
{% endif %} | {% endif %} | ||||
</script> | </script> | ||||
{% endblock %} | {% endblock %} | ||||
@@ -255,7 +255,7 @@ def get_context(context): | |||||
js_path = os.path.join(os.path.dirname(self.web_form_module.__file__), scrub(self.name) + '.js') | js_path = os.path.join(os.path.dirname(self.web_form_module.__file__), scrub(self.name) + '.js') | ||||
if os.path.exists(js_path): | if os.path.exists(js_path): | ||||
context.script = frappe.render_template(open(js_path, 'r').read(), context) | |||||
context.script = frappe.render_template(open(js_path, 'r').read().decode('utf-8'), context) | |||||
css_path = os.path.join(os.path.dirname(self.web_form_module.__file__), scrub(self.name) + '.css') | css_path = os.path.join(os.path.dirname(self.web_form_module.__file__), scrub(self.name) + '.css') | ||||
if os.path.exists(css_path): | if os.path.exists(css_path): | ||||