Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
d4490220
Commit
d4490220
authored
Aug 06, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type/patches: Do not patch DeepDiff class in case the eggs for DeepDiff are not present
parent
8a8bc465
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
product/ERP5Type/patches/diff.py
product/ERP5Type/patches/diff.py
+8
-2
No files found.
product/ERP5Type/patches/diff.py
View file @
d4490220
...
@@ -91,5 +91,11 @@ def DeepDiff__diff(self, level, parents_ids=frozenset({})):
...
@@ -91,5 +91,11 @@ def DeepDiff__diff(self, level, parents_ids=frozenset({})):
# was too complicated in DeepDiff(doing recursive diff inside the iterables).
# was too complicated in DeepDiff(doing recursive diff inside the iterables).
# Rather than doing that, now we treat the iterables as string and calculate
# Rather than doing that, now we treat the iterables as string and calculate
# the diff accordingly
# the diff accordingly
DeepDiff
.
_DeepDiff__diff_iterable
=
DeepDiff__diff_iterable
# Do not try to monkey-patch when there is no DeepDiff class imported. This is
DeepDiff
.
_DeepDiff__diff
=
DeepDiff__diff
# because we don't want any component(for ex DiffTool) be acting as Broken Modified
# if the DeepDiff patch is not working properly
try
:
DeepDiff
.
_DeepDiff__diff_iterable
=
DeepDiff__diff_iterable
DeepDiff
.
_DeepDiff__diff
=
DeepDiff__diff
except
AttributeError
:
pass
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