Просмотр исходного кода

[fix] get_visible_columns in jinja.py

version-14
Rushabh Mehta 9 лет назад
Родитель
Сommit
ede3a8ca05
2 измененных файлов: 4 добавлений и 2 удалений
  1. +3
    -1
      frappe/__init__.py
  2. +1
    -1
      frappe/utils/jinja.py

+ 3
- 1
frappe/__init__.py Просмотреть файл

@@ -173,7 +173,9 @@ def get_site_config(sites_path=None, site_path=None):
if os.path.exists(site_config):
config.update(get_file_json(site_config))
elif local.site and not local.flags.new_site:
raise IncorrectSitePath, "{0} does not exist".format(site_config)
print "{0} does not exist".format(local.site)
sys.exit(1)
#raise IncorrectSitePath, "{0} does not exist".format(site_config)

return _dict(config)



+ 1
- 1
frappe/utils/jinja.py Просмотреть файл

@@ -107,8 +107,8 @@ def get_allowed_functions_for_jenv():
}

if not frappe.flags.in_setup_help:
out['get_visible_columns'] = frappe.get_attr("frappe.www.print.get_visible_columns")
out['frappe']['date_format'] = frappe.db.get_default("date_format") or "yyyy-mm-dd"
out['frappe']['get_visible_columns'] = frappe.get_attr("frappe.www.print.get_visible_columns")
out['frappe']["db"] = {
"get_value": frappe.db.get_value,
"get_default": frappe.db.get_default,


Загрузка…
Отмена
Сохранить