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
Mukul
erp5
Commits
5befe262
Commit
5befe262
authored
Mar 20, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workflow.py: Workflow history generation uses ERP5Workflow variable instead of giving manually.
parent
c6a93d4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+4
-4
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
5befe262
...
...
@@ -98,11 +98,11 @@ class Workflow(XMLObject):
# Initialize workflow history
status_dict
=
{
state_bc_id
:
document
.
unrestrictedTraverse
(
self
.
getSource
()).
getId
()}
status_dict
[
'time'
]
=
self
.
getDateTime
()
status_dict
[
'action'
]
=
None
#
status_dict['time'] = self.getDateTime()
#
status_dict['action'] = None
variable_list
=
self
.
contentValues
(
portal_type
=
'Variable'
)
for
variable
in
variable_list
:
status_dict
[
variable
.
get
Title
()]
=
variable
.
getInitialValue
(
object
=
object
)
status_dict
[
variable
.
get
Id
()]
=
variable
.
getInitialValue
(
object
=
object
)
self
.
_updateWorkflowHistory
(
document
,
status_dict
)
### zwj: initialize role mappings, also in State.py/executeTransition()
self
.
updateRoleMappingsFor
(
document
)
...
...
@@ -130,7 +130,7 @@ class Workflow(XMLObject):
document
.
workflow_history
[
workflow_key
]
=
()
# Update history
status_dict
[
'time'
]
=
self
.
getDateTime
()
#
status_dict['time'] = self.getDateTime()
document
.
workflow_history
[
workflow_key
]
+=
(
status_dict
,)
# XXX this _p_changed marks the document modified, but the
# only the PersistentMapping is modified
...
...
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