Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
f94c619c
Commit
f94c619c
authored
Jul 05, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InteractionWorkflow.py: get variable and script by reference.
parent
bef0144c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+10
-3
No files found.
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
f94c619c
...
@@ -121,7 +121,11 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -121,7 +121,11 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
'''
'''
Returns a true value if the given info name is supported.
Returns a true value if the given info name is supported.
'''
'''
vdef
=
self
.
_getOb
(
name
,
None
)
for
x
in
self
.
objectValues
(
portal_type
=
'Variable'
):
if
x
.
getReference
()
==
name
:
vdef
=
x
break
if
vdef
is
not
None
:
if
vdef
is
not
None
:
if
vdef
.
getTypeInfo
().
getId
()
==
'Variable'
:
if
vdef
.
getTypeInfo
().
getId
()
==
'Variable'
:
return
1
return
1
...
@@ -134,7 +138,10 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -134,7 +138,10 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
Allows the user to request information provided by the
Allows the user to request information provided by the
workflow. This method must perform its own security checks.
workflow. This method must perform its own security checks.
'''
'''
vdef
=
self
.
_getOb
(
name
,
_MARKER
)
for
x
in
self
.
objectValues
(
portal_type
=
'Variable'
):
if
x
.
getReference
()
==
name
:
vdef
=
x
break
if
vdef
is
_MARKER
:
if
vdef
is
_MARKER
:
return
default
return
default
if
vdef
.
info_guard
is
not
None
and
not
vdef
.
info_guard
.
check
(
if
vdef
.
info_guard
is
not
None
and
not
vdef
.
info_guard
.
check
(
...
@@ -245,7 +252,7 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -245,7 +252,7 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), XMLObject):
def
getScriptValueList
(
self
):
def
getScriptValueList
(
self
):
scripts
=
{}
scripts
=
{}
for
script
in
self
.
objectValues
(
portal_type
=
'Workflow Script'
):
for
script
in
self
.
objectValues
(
portal_type
=
'Workflow Script'
):
scripts
[
script
.
get
Id
()]
=
script
scripts
[
script
.
get
Reference
()]
=
script
return
scripts
return
scripts
security
.
declarePrivate
(
'getTransitionValueList'
)
security
.
declarePrivate
(
'getTransitionValueList'
)
...
...
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