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
Léo-Paul Géneau
erp5
Commits
c18fd491
Commit
c18fd491
authored
Jun 24, 2014
by
Kazuhiko Shiozaki
Committed by
Julien Muchembled
Oct 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cast the recorded value to list in CategoryMembershipEquivalenceTester.
This reapplies commit
648d7020
parent
7a44f695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5/Document/CategoryMembershipEquivalenceTester.py
product/ERP5/Document/CategoryMembershipEquivalenceTester.py
+8
-0
No files found.
product/ERP5/Document/CategoryMembershipEquivalenceTester.py
View file @
c18fd491
...
@@ -68,6 +68,14 @@ class CategoryMembershipEquivalenceTester(Predicate, EquivalenceTesterMixin):
...
@@ -68,6 +68,14 @@ class CategoryMembershipEquivalenceTester(Predicate, EquivalenceTesterMixin):
if
getattr
(
decision_movement
,
'isPropertyRecorded'
,
if
getattr
(
decision_movement
,
'isPropertyRecorded'
,
lambda
x
:
False
)(
tested_property
):
lambda
x
:
False
)(
tested_property
):
decision_value
=
decision_movement
.
getRecordedProperty
(
tested_property
)
decision_value
=
decision_movement
.
getRecordedProperty
(
tested_property
)
# The following may be only for compatibility. Although current code does
# not seem to produce non-list values here, we really have existing data
# with such values, e.g. aggregate=None.
if
not
isinstance
(
decision_value
,
(
list
,
tuple
)):
if
decision_value
is
None
:
decision_value
=
[]
else
:
decision_value
=
[
decision_value
]
else
:
else
:
decision_value
=
self
.
_getTestedPropertyValue
(
decision_movement
,
decision_value
=
self
.
_getTestedPropertyValue
(
decision_movement
,
tested_property
)
tested_property
)
...
...
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