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

Merge pull request #961 from anandpdoshi/anand-dec-29

Unicode fix for File Manager and added new currency - Romanian New Leu
version-14
Anand Doshi 10 лет назад
Родитель
Сommit
98ea6463fd
2 измененных файлов: 5 добавлений и 3 удалений
  1. +4
    -2
      frappe/country_info.json
  2. +1
    -1
      frappe/utils/file_manager.py

+ 4
- 2
frappe/country_info.json Просмотреть файл

@@ -1946,9 +1946,11 @@
}, },
"Romania": { "Romania": {
"code": "ro", "code": "ro",
"currency_fraction": "Ban",
"currency": "RON",
"currency_fraction": "Bani",
"currency_fraction_units": 100, "currency_fraction_units": 100,
"currency_symbol": "L",
"currency_name": "Romanian New Leu",
"currency_symbol": "lei",
"number_format": "#,###.##", "number_format": "#,###.##",
"timezones": [ "timezones": [
"Europe/Bucharest" "Europe/Bucharest"


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

@@ -251,7 +251,7 @@ def get_content_hash(content):


def get_file_name(fname, optional_suffix): def get_file_name(fname, optional_suffix):
n_records = frappe.db.sql("select name from `tabFile Data` where file_name=%s", fname) n_records = frappe.db.sql("select name from `tabFile Data` where file_name=%s", fname)
if len(n_records) > 0 or os.path.exists(get_files_path(fname.encode('utf-8'))):
if len(n_records) > 0 or os.path.exists(get_files_path(fname).encode('utf-8')):
f = fname.rsplit('.', 1) f = fname.rsplit('.', 1)
if len(f) == 1: if len(f) == 1:
partial, extn = f[0], "" partial, extn = f[0], ""


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