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
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 ):
...
@@ -1656,12 +1656,12 @@ class CategoryTool( UniqueObject, Folder, Base ):
objects belonging to child categories.
objects belonging to child categories.
strict : a deprecated alias for strict_membership
strict : a deprecated alias for strict_membership
"""
"""
k
=
{}
return
Renderer
(
**
kw
).
render
(
self
.
getCategoryMemberValueList
(
for
v
in
(
'portal_type'
,
'spec'
,
'strict'
,
'strict_membership'
):
context
,
if
v
in
kw
:
portal_type
=
kw
.
get
(
'portal_type'
),
k
[
v
]
=
kw
[
v
]
strict_membership
=
kw
.
get
(
'strict_membership'
),
catalog_search
=
self
.
getCategoryMemberValueList
(
context
,
**
k
)
strict
=
kw
.
get
(
'strict'
),
return
Renderer
(
**
kw
).
render
(
catalog_search
)
)
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getCategoryMemberTitleItemList'
)
'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