Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
erp5
Commits
cf3371b3
Commit
cf3371b3
authored
Dec 21, 2016
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFCategory.CategoryTool: Simplify getCategoryMemberItemList.
Also, stop passing ignored "spec" parameter.
parent
7e187cf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
product/CMFCategory/CategoryTool.py
product/CMFCategory/CategoryTool.py
+6
-6
No files found.
product/CMFCategory/CategoryTool.py
View file @
cf3371b3
...
...
@@ -1656,12 +1656,12 @@ class CategoryTool( UniqueObject, Folder, Base ):
objects belonging to child categories.
strict : a deprecated alias for strict_membership
"""
k
=
{}
for
v
in
(
'portal_type'
,
'spec'
,
'strict'
,
'strict_membership'
):
if
v
in
kw
:
k
[
v
]
=
kw
[
v
]
catalog_search
=
self
.
getCategoryMemberValueList
(
context
,
**
k
)
return
Renderer
(
**
kw
).
render
(
catalog_search
)
return
Renderer
(
**
kw
).
render
(
self
.
getCategoryMemberValueList
(
context
,
portal_type
=
kw
.
get
(
'portal_type'
),
strict_membership
=
kw
.
get
(
'strict_membership'
),
strict
=
kw
.
get
(
'strict'
),
)
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getCategoryMemberTitleItemList'
)
...
...
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