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
preetwinder
erp5
Commits
a0722829
Commit
a0722829
authored
Mar 27, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workflow.py: remove LOGs
parent
e06cfd3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+1
-4
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
a0722829
...
...
@@ -2,7 +2,7 @@
#
# Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.
# Romain Courteaud <romain@nexedi.com>
# 2014 Wenjie Zheng <wenjie.zheng@tiolive.com>
# 2014 Wenjie Zheng <wenjie.zheng@tiolive.com>
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
...
...
@@ -395,12 +395,10 @@ class Workflow(XMLObject):
for
key
in
worklist_definition
.
getVarMatchKeys
():
var
=
worklist_definition
.
getVarMatch
(
key
)
if
isinstance
(
var
,
Expression
):
LOG
(
'var %s is an Expression'
%
var
,
WARNING
,
'in Workflow.py 398'
)
evaluated_value
=
var
(
Expression_createExprContext
(
StateChangeInfo
(
portal
,
self
,
kwargs
=
info
.
__dict__
.
copy
())))
if
isinstance
(
evaluated_value
,
(
str
,
int
,
long
)):
evaluated_value
=
[
str
(
evaluated_value
)]
LOG
(
'evaluated_value %s is a str in long'
%
var
,
WARNING
,
'in Workflow.py 403'
)
else
:
evaluated_value
=
[
x
%
info
for
x
in
var
]
variable_match
[
key
]
=
evaluated_value
...
...
@@ -449,7 +447,6 @@ class Workflow(XMLObject):
if
len
(
variable_match_dict
)
==
0
:
return
None
return
variable_match_dict
# ============================================================================
security
.
declarePrivate
(
'getInfoFor'
)
def
getInfoFor
(
self
,
ob
,
name
,
default
):
...
...
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