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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
d7c8e089
Commit
d7c8e089
authored
Jul 20, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: fix incorrect Workflist variable creation in testWorklist
parent
ae19b4cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorklist.py
...tTemplateItem/portal_components/test.erp5.testWorklist.py
+7
-6
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorklist.py
View file @
d7c8e089
...
...
@@ -143,12 +143,12 @@ class TestWorklist(testWorkflowMixin):
expression
=
guard_expr
)
for
_
,
value
in
kw
.
iteritems
():
if
isinstance
(
value
,
str
)
and
value
.
startswith
(
'python'
):
# XXX(WORKFLOW), default expr does not follow naming conventions
worklist_value
.
newContent
(
portal_type
=
'Worklist Variable'
,
default_expr
=
value
)
else
:
worklist_va
lue
.
newContent
(
portal_type
=
'Worklist Variable'
,
intial_value
=
value
)
for
worklist_variable_key
,
worklist_variable_
value
in
kw
.
iteritems
():
worklist_variable
=
worklist_value
.
newContent
(
portal_type
=
'Worklist Variable'
,
initial_value
=
worklist_variable_value
,
reference
=
worklist_variable_key
)
if
isinstance
(
worklist_variable_value
,
str
)
and
worklist_variable_value
.
startswith
(
'python'
)
:
worklist_va
riable
.
setDefaultExpression
(
worklist_variable_
value
)
def
createDCWorklist
(
self
,
workflow_value
,
worklist_id
,
actbox_name
,
actbox_url
=
None
,
**
kw
):
...
...
@@ -269,6 +269,7 @@ class TestWorklist(testWorkflowMixin):
result
=
workflow_tool
.
listActions
(
object
=
document
)
self
.
logMessage
(
"Check %s worklist with int value as %s"
%
\
(
user_id
,
2
))
self
.
checkWorklist
(
result
,
'int_value_todo'
,
0
)
#
...
...
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