Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
a102b5e0
Commit
a102b5e0
authored
Oct 06, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add support for other object types in Diff Tool
parent
fc24e53e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
product/ERP5/Tool/DiffTool.py
product/ERP5/Tool/DiffTool.py
+10
-2
No files found.
product/ERP5/Tool/DiffTool.py
View file @
a102b5e0
...
...
@@ -109,8 +109,16 @@ class PortalPatch:
"""
Returns a Json patch with deep diff extensions
"""
#It's easier to ask forgiveness than permission
try
:
src
=
self
.
old_value
.
_asDict
()
except
AttributeError
:
src
=
self
.
old_value
try
:
dst
=
self
.
new_value
.
_asDict
()
except
AttributeError
:
dst
=
self
.
new_value
ddiff
=
DeepDiff
(
src
,
dst
,
ignore_order
=
True
,
verbose_level
=
0
)
return
ddiff
...
...
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