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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
d15cb045
Commit
d15cb045
authored
2 years ago
by
Kazuhiko Shiozaki
Committed by
Arnaud Fontaine
1 year ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! py2/py3: dict_key does not have sort().
parent
536bf683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
product/ERP5Type/Core/Predicate.py
product/ERP5Type/Core/Predicate.py
+1
-3
No files found.
product/ERP5Type/Core/Predicate.py
View file @
d15cb045
...
...
@@ -332,9 +332,7 @@ class Predicate(XMLObject):
criterion_dict
[
p
].
property
=
p
criterion_dict
[
p
].
min
=
self
.
_range_criterion
.
get
(
p
,
(
None
,
None
))[
0
]
criterion_dict
[
p
].
max
=
self
.
_range_criterion
.
get
(
p
,
(
None
,
None
))[
1
]
criterion_list
=
criterion_dict
.
values
()
criterion_list
.
sort
()
return
criterion_list
return
sorted
(
criterion_dict
.
values
())
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'setCriterion'
)
def
setCriterion
(
self
,
property
,
identity
=
None
,
min
=
None
,
max
=
None
,
**
kw
):
...
...
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