Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
仰若水
frappe
Commits
6e6a469a
Commit
6e6a469a
authored
9 years ago
by
Anand Doshi
Browse files
Options
Download
Plain Diff
Merge branch 'develop'
parents
39863477
4ca5d8c4
No related merge requests found
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
frappe/__version__.py
+1
-1
frappe/__version__.py
frappe/desk/form/utils.py
+3
-1
frappe/desk/form/utils.py
frappe/hooks.py
+1
-1
frappe/hooks.py
frappe/patches.txt
+1
-0
frappe/patches.txt
frappe/patches/v5_3/__init__.py
+0
-0
frappe/patches/v5_3/__init__.py
frappe/patches/v5_3/rename_chinese_languages.py
+18
-0
frappe/patches/v5_3/rename_chinese_languages.py
setup.py
+1
-1
setup.py
with
25 additions
and
4 deletions
+25
-4
frappe/__version__.py
View file @
6e6a469a
from
__future__
import
unicode_literals
__version__
=
"5.3.
0
"
__version__
=
"5.3.
1
"
This diff is collapsed.
Click to expand it.
frappe/desk/form/utils.py
View file @
6e6a469a
...
...
@@ -144,7 +144,9 @@ def get_linked_docs(doctype, name, metadata_loaded=None, no_metadata=False):
filters
=
[[
dt
,
link
.
get
(
"fieldname"
),
'='
,
name
]])
except
frappe
.
PermissionError
:
frappe
.
local
.
message_log
.
pop
()
if
frappe
.
local
.
message_log
:
frappe
.
local
.
message_log
.
pop
()
continue
if
ret
:
...
...
This diff is collapsed.
Click to expand it.
frappe/hooks.py
View file @
6e6a469a
...
...
@@ -26,7 +26,7 @@ to ERPNext.
"""
app_icon
=
"octicon octicon-circuit-board"
app_version
=
"5.3.
0
"
app_version
=
"5.3.
1
"
app_color
=
"orange"
github_link
=
"https://github.com/frappe/frappe"
...
...
This diff is collapsed.
Click to expand it.
frappe/patches.txt
View file @
6e6a469a
...
...
@@ -84,3 +84,4 @@ frappe.patches.v5_0.expire_old_scheduler_logs
execute:frappe.permissions.reset_perms("DocType")
execute:frappe.db.sql("delete from `tabProperty Setter` where `property` = 'idx'")
frappe.patches.v5_2.change_checks_to_not_null
frappe.patches.v5_3.rename_chinese_languages
This diff is collapsed.
Click to expand it.
frappe/patches/v5_3/__init__.py
0 → 100644
View file @
6e6a469a
This diff is collapsed.
Click to expand it.
frappe/patches/v5_3/rename_chinese_languages.py
0 → 100644
View file @
6e6a469a
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
import
frappe
def
execute
():
language_map
=
{
"中国(简体)"
:
"簡體中文"
,
"中國(繁體)"
:
"正體中文"
}
language_in_system_settings
=
frappe
.
db
.
get_single_value
(
"System Settings"
,
"language"
)
if
language_in_system_settings
in
language_map
:
new_language_name
=
language_map
[
language_in_system_settings
]
frappe
.
db
.
set_value
(
"System Settings"
,
"System Settings"
,
"language"
,
new_language_name
)
for
old_name
,
new_name
in
language_map
.
items
():
frappe
.
db
.
sql
(
"""update `tabUser` set language=%(new_name)s where language=%(old_name)s"""
,
{
"old_name"
:
old_name
,
"new_name"
:
new_name
})
This diff is collapsed.
Click to expand it.
setup.py
View file @
6e6a469a
from
setuptools
import
setup
,
find_packages
version
=
"5.3.
0
"
version
=
"5.3.
1
"
with
open
(
"requirements.txt"
,
"r"
)
as
f
:
install_requires
=
f
.
readlines
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help