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
Klaus Wölfel
erp5
Commits
a6be976a
Commit
a6be976a
authored
7 years ago
by
Cédric Le Ninivin
Committed by
Your Name
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AcceptSolver: Applies Solver if and only if defined on the tester
parent
e7ff02ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
product/ERP5/Document/AcceptSolver.py
product/ERP5/Document/AcceptSolver.py
+1
-7
No files found.
product/ERP5/Document/AcceptSolver.py
View file @
a6be976a
...
@@ -47,12 +47,7 @@ class AcceptSolver(ConfigurablePropertySolverMixin):
...
@@ -47,12 +47,7 @@ class AcceptSolver(ConfigurablePropertySolverMixin):
original one recorded.
original one recorded.
"""
"""
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
solved_property_list
=
self
.
getConfigurationPropertyDict
()
\
.
get
(
'tested_property_list'
)
solver_portal_type_relative_url
=
self
.
getPortalTypeValue
().
getRelativeUrl
()
solver_portal_type_relative_url
=
self
.
getPortalTypeValue
().
getRelativeUrl
()
if
solved_property_list
is
None
:
solved_property_list
=
\
portal
.
portal_types
.
getTypeInfo
(
self
).
getTestedPropertyList
()
with
self
.
defaultActivateParameterDict
(
activate_kw
,
True
):
with
self
.
defaultActivateParameterDict
(
activate_kw
,
True
):
for
simulation_movement
in
self
.
getDeliveryValueList
():
for
simulation_movement
in
self
.
getDeliveryValueList
():
movement
=
simulation_movement
.
getDeliveryValue
()
movement
=
simulation_movement
.
getDeliveryValue
()
...
@@ -61,8 +56,7 @@ class AcceptSolver(ConfigurablePropertySolverMixin):
...
@@ -61,8 +56,7 @@ class AcceptSolver(ConfigurablePropertySolverMixin):
for
divergence
in
divergence_list
:
for
divergence
in
divergence_list
:
solved_property
=
divergence
.
getProperty
(
'tested_property'
)
solved_property
=
divergence
.
getProperty
(
'tested_property'
)
# Only apply solver if it has been defined on the Tester
# Only apply solver if it has been defined on the Tester
if
(
solved_property
not
in
solved_property_list
)
or
\
if
(
not
solver_portal_type_relative_url
\
(
not
solver_portal_type_relative_url
\
in
portal
.
restrictedTraverse
(
in
portal
.
restrictedTraverse
(
divergence
.
getProperty
(
'tester_relative_url'
)).
getSolverList
()):
divergence
.
getProperty
(
'tester_relative_url'
)).
getSolverList
()):
continue
continue
...
...
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