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
Alexander Emmerich
erp5
Commits
52e3b83a
Commit
52e3b83a
authored
Oct 15, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
Apr 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! py2/py3: dict_key does not have sort().
parent
9be93468
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 @
52e3b83a
...
@@ -332,9 +332,7 @@ class Predicate(XMLObject):
...
@@ -332,9 +332,7 @@ class Predicate(XMLObject):
criterion_dict
[
p
].
property
=
p
criterion_dict
[
p
].
property
=
p
criterion_dict
[
p
].
min
=
self
.
_range_criterion
.
get
(
p
,
(
None
,
None
))[
0
]
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_dict
[
p
].
max
=
self
.
_range_criterion
.
get
(
p
,
(
None
,
None
))[
1
]
criterion_list
=
criterion_dict
.
values
()
return
sorted
(
criterion_dict
.
values
())
criterion_list
.
sort
()
return
criterion_list
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'setCriterion'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'setCriterion'
)
def
setCriterion
(
self
,
property
,
identity
=
None
,
min
=
None
,
max
=
None
,
**
kw
):
def
setCriterion
(
self
,
property
,
identity
=
None
,
min
=
None
,
max
=
None
,
**
kw
):
...
...
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