Selaa lähdekoodia

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

* [minor] fixed UnicodeEncode error for item name

* Update router.py
version-14
Makarand Bauskar 8 vuotta sitten
committed by Rushabh Mehta
vanhempi
commit
f26fa3816a
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. +3
    -2
      frappe/website/router.py

+ 3
- 2
frappe/website/router.py Näytä tiedosto

@@ -66,8 +66,9 @@ def get_page_context_from_template(path):
options = (search_path, search_path + '.html', search_path + '.md', options = (search_path, search_path + '.html', search_path + '.md',
search_path + '/index.html', search_path + '/index.md') search_path + '/index.html', search_path + '/index.md')
for o in options: 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 return None




Ladataan…
Peruuta
Tallenna