Quellcode durchsuchen

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 vor 10 Jahren
Ursprung
Commit
98ea6463fd
2 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. +4
    -2
      frappe/country_info.json
  2. +1
    -1
      frappe/utils/file_manager.py

+ 4
- 2
frappe/country_info.json Datei anzeigen

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


+ 1
- 1
frappe/utils/file_manager.py Datei anzeigen

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

def get_file_name(fname, optional_suffix):
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)
if len(f) == 1:
partial, extn = f[0], ""


Laden…
Abbrechen
Speichern