浏览代码

[minor] fixed UnicodeEncode error for item name (#3321)

* [minor] fixed UnicodeEncode error for item name

* Update router.py
version-14
Makarand Bauskar 8 年前
committed by Rushabh Mehta
父节点
当前提交
f26fa3816a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      frappe/website/router.py

+ 3
- 2
frappe/website/router.py 查看文件

@@ -66,8 +66,9 @@ def get_page_context_from_template(path):
options = (search_path, search_path + '.html', search_path + '.md',
search_path + '/index.html', search_path + '/index.md')
for o in options:
if os.path.exists(o) and not os.path.isdir(o):
return get_page_info(o, app, app_path=app_path)
option = frappe.as_unicode(o)
if os.path.exists(option) and not os.path.isdir(option):
return get_page_info(option, app, app_path=app_path)

return None



正在加载...
取消
保存