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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
c9c06dda
Commit
c9c06dda
authored
Feb 14, 2018
by
Hardik Juneja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity: rename activateResult to storeResult
parent
33bb3a8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
product/CMFActivity/Activity/SQLBase.py
product/CMFActivity/Activity/SQLBase.py
+1
-6
product/CMFActivity/Activity/SQLJoblib.py
product/CMFActivity/Activity/SQLJoblib.py
+2
-1
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+1
-2
No files found.
product/CMFActivity/Activity/SQLBase.py
View file @
c9c06dda
...
...
@@ -117,12 +117,7 @@ class SQLBase(Queue):
" The following added columns could not be initialized: %s"
%
(
self
.
sql_table
,
", "
.
join
(
column_list
)))
def
register
(
self
,
activity_buffer
,
activity_tool
,
message
):
activity_buffer
.
register
(
activity_tool
)
assert
not
message
.
is_registered
,
message
self
.
registerMessage
(
activity_buffer
,
activity_tool
,
message
)
def
activateResult
(
self
,
active_process
,
result
,
signature
=
None
):
def
storeResult
(
self
,
activity_tool
,
active_process
,
result
):
active_process
.
appendResult
(
result
)
def
prepareQueueMessageList
(
self
,
activity_tool
,
message_list
):
...
...
product/CMFActivity/Activity/SQLJoblib.py
View file @
c9c06dda
...
...
@@ -87,7 +87,8 @@ class SQLJoblib(SQLDict):
self
.
activity_tool
=
activity_tool
self
.
prepareMessage
(
activity_tool
,
message
)
def
activateResult
(
self
,
active_process
,
result
,
signature
):
def
storeResult
(
self
,
message
,
active_process
,
result
):
signature
=
message
.
activity_kw
[
'signature'
]
result
.
signature
=
int
(
signature
)
active_process
.
setResult
(
result
)
...
...
product/CMFActivity/ActivityTool.py
View file @
c9c06dda
...
...
@@ -294,8 +294,7 @@ class Message(BaseMessage):
if
not
hasattr
(
self
,
'activity'
):
self
.
activity
=
DEFAULT_ACTIVITY
result
.
edit
(
object_path
=
object
,
method_id
=
self
.
method_id
)
signature
=
getattr
(
self
,
'signature'
,
None
)
activity_dict
[
self
.
activity
].
activateResult
(
active_process
,
result
,
signature
)
activity_dict
[
self
.
activity
].
storeResult
(
self
,
active_process
,
result
)
def
__call__
(
self
,
activity_tool
):
try
:
...
...
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