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
Lukas Niegsch
erp5
Commits
a5370ef7
Commit
a5370ef7
authored
Oct 12, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type.Core.Folder.recurseCallMethod: Allow spawning activities on SQLDict.
For when redundant activities may be skipped.
parent
87a8f5be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ERP5Type/Core/Folder.py
product/ERP5Type/Core/Folder.py
+4
-2
No files found.
product/ERP5Type/Core/Folder.py
View file @
a5370ef7
...
@@ -449,6 +449,7 @@ class FolderMixIn(ExtensionClass.Base):
...
@@ -449,6 +449,7 @@ class FolderMixIn(ExtensionClass.Base):
activate_kw
=
self
.
getDefaultActivateParameterDict
.
im_func
(
None
)
activate_kw
=
self
.
getDefaultActivateParameterDict
.
im_func
(
None
)
activate_kw
.
update
(
kw
.
get
(
'activate_kw'
,
()))
activate_kw
.
update
(
kw
.
get
(
'activate_kw'
,
()))
activate_kw
.
setdefault
(
'active_process'
,
None
)
activate_kw
.
setdefault
(
'active_process'
,
None
)
activate_kw
.
setdefault
(
'activity'
,
'SQLQueue'
)
activate
=
self
.
getPortalObject
().
portal_activities
.
activateObject
activate
=
self
.
getPortalObject
().
portal_activities
.
activateObject
validate
=
restricted
and
getSecurityManager
().
validate
validate
=
restricted
and
getSecurityManager
().
validate
cost
=
activate_kw
.
setdefault
(
'group_method_cost'
,
.
034
)
# 30 objects
cost
=
activate_kw
.
setdefault
(
'group_method_cost'
,
.
034
)
# 30 objects
...
@@ -508,7 +509,7 @@ class FolderMixIn(ExtensionClass.Base):
...
@@ -508,7 +509,7 @@ class FolderMixIn(ExtensionClass.Base):
del
next_id
[
0
]
del
next_id
[
0
]
if
min_depth
<=
depth
:
if
min_depth
<=
depth
:
check_limit
()
check_limit
()
getattr
(
activate
(
container
,
'SQLQueue'
,
**
getActivateKw
(
container
,
recurse_activate_kw
)),
getattr
(
activate
(
container
,
**
getActivateKw
(
container
,
recurse_activate_kw
)),
method_id
)(
*
method_args
,
**
method_kw
)
method_id
)(
*
method_args
,
**
method_kw
)
del
recurse_stack
[
depth
:]
del
recurse_stack
[
depth
:]
try
:
try
:
...
@@ -517,7 +518,8 @@ class FolderMixIn(ExtensionClass.Base):
...
@@ -517,7 +518,8 @@ class FolderMixIn(ExtensionClass.Base):
if
hook_raised
:
if
hook_raised
:
raise
raise
activate_kw
[
'group_method_id'
]
=
kw
[
'group_id'
]
=
''
# no grouping
activate_kw
[
'group_method_id'
]
=
kw
[
'group_id'
]
=
''
# no grouping
activate
(
self
,
'SQLQueue'
,
**
activate_kw
).
_recurseCallMethod
(
activate_kw
[
'activity'
]
=
'SQLQueue'
activate
(
self
,
**
activate_kw
).
_recurseCallMethod
(
method_id
,
method_args
,
method_kw
,
restricted
=
restricted
,
**
kw
)
method_id
,
method_args
,
method_kw
,
restricted
=
restricted
,
**
kw
)
security
.
declarePublic
(
'recurseCallMethod'
)
security
.
declarePublic
(
'recurseCallMethod'
)
...
...
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