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
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
064b817f
Commit
064b817f
authored
Apr 12, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup
8b4a67a6
Allow recurse calls with uid, just disallow in public method.
parent
90970767
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+3
-3
No files found.
product/ERP5Catalog/CatalogTool.py
View file @
064b817f
...
@@ -883,9 +883,6 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
...
@@ -883,9 +883,6 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
'activate_kw' may specify an active process to collect results.
'activate_kw' may specify an active process to collect results.
"""
"""
if
'uid'
in
kw
:
raise
TypeError
(
"'uid' cannot be used to select documents as it is "
"used internally"
)
catalog_kw
=
dict
(
kw
)
catalog_kw
=
dict
(
kw
)
packet_size
=
catalog_kw
.
pop
(
'packet_size'
,
30
)
packet_size
=
catalog_kw
.
pop
(
'packet_size'
,
30
)
limit
=
packet_size
*
catalog_kw
.
pop
(
'activity_count'
,
100
)
limit
=
packet_size
*
catalog_kw
.
pop
(
'activity_count'
,
100
)
...
@@ -913,6 +910,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
...
@@ -913,6 +910,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
security
.
declarePublic
(
'searchAndActivate'
)
security
.
declarePublic
(
'searchAndActivate'
)
def
searchAndActivate
(
self
,
*
args
,
**
kw
):
def
searchAndActivate
(
self
,
*
args
,
**
kw
):
"""Restricted version of _searchAndActivate"""
"""Restricted version of _searchAndActivate"""
if
'uid'
in
kw
:
raise
TypeError
(
"'uid' cannot be used to select documents as it is "
"used internally"
)
return
self
.
_searchAndActivate
(
restricted
=
True
,
*
args
,
**
kw
)
return
self
.
_searchAndActivate
(
restricted
=
True
,
*
args
,
**
kw
)
InitializeClass
(
CatalogTool
)
InitializeClass
(
CatalogTool
)
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