Browse Source

Merge branch 'hotfix'

version-14
Saurabh 7 years ago
parent
commit
a0973617ab
4 changed files with 3 additions and 6 deletions
  1. +1
    -1
      frappe/__init__.py
  2. +0
    -3
      frappe/utils/xlsxutils.py
  3. +1
    -1
      frappe/website/doctype/web_form/templates/web_form.html
  4. +1
    -1
      frappe/website/doctype/web_form/web_form.py

+ 1
- 1
frappe/__init__.py View File

@@ -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()


+ 0
- 3
frappe/utils/xlsxutils.py View File

@@ -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)


+ 1
- 1
frappe/website/doctype/web_form/templates/web_form.html View File

@@ -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 %}


+ 1
- 1
frappe/website/doctype/web_form/web_form.py View File

@@ -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):


Loading…
Cancel
Save