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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
2d0eeaaf
Commit
2d0eeaaf
authored
May 27, 2015
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testExplanation() -> _testExplanation().
parent
c4ac239a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Document/PreviousCausalityMovementGroup.py
product/ERP5/Document/PreviousCausalityMovementGroup.py
+3
-3
No files found.
product/ERP5/Document/PreviousCausalityMovementGroup.py
View file @
2d0eeaaf
...
@@ -59,7 +59,7 @@ class PreviousCausalityMovementGroup(FirstCausalityMovementGroup):
...
@@ -59,7 +59,7 @@ class PreviousCausalityMovementGroup(FirstCausalityMovementGroup):
return
False
,
{}
return
False
,
{}
raise
NotImplementedError
(
"What should we do ?"
)
raise
NotImplementedError
(
"What should we do ?"
)
def
testExplanation
(
self
,
explanation_value
):
def
_
testExplanation
(
self
,
explanation_value
):
"""
"""
Check if explanation is valid
Check if explanation is valid
...
@@ -79,7 +79,7 @@ class PreviousCausalityMovementGroup(FirstCausalityMovementGroup):
...
@@ -79,7 +79,7 @@ class PreviousCausalityMovementGroup(FirstCausalityMovementGroup):
# created by the root applied rule.
# created by the root applied rule.
movement
=
movement
.
getParentValue
().
getParentValue
()
movement
=
movement
.
getParentValue
().
getParentValue
()
intermediate_explanation_value
=
movement
.
getExplanationValue
()
intermediate_explanation_value
=
movement
.
getExplanationValue
()
if
self
.
testExplanation
(
intermediate_explanation_value
):
if
self
.
_
testExplanation
(
intermediate_explanation_value
):
explanation_value
=
intermediate_explanation_value
explanation_value
=
intermediate_explanation_value
if
explanation_value
is
None
:
if
explanation_value
is
None
:
explanation_value
=
self
.
_searchUpperInTree
(
movement
)
explanation_value
=
self
.
_searchUpperInTree
(
movement
)
...
@@ -87,7 +87,7 @@ class PreviousCausalityMovementGroup(FirstCausalityMovementGroup):
...
@@ -87,7 +87,7 @@ class PreviousCausalityMovementGroup(FirstCausalityMovementGroup):
def
_searchThroughDelivery
(
self
,
delivery
):
def
_searchThroughDelivery
(
self
,
delivery
):
explanation_value
=
None
explanation_value
=
None
if
self
.
testExplanation
(
delivery
):
if
self
.
_
testExplanation
(
delivery
):
explanation_value
=
delivery
explanation_value
=
delivery
else
:
else
:
for
causality_value
in
delivery
.
getCausalityValueList
():
for
causality_value
in
delivery
.
getCausalityValueList
():
...
...
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