Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
d96144a9
Commit
d96144a9
authored
Mar 19, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workflow.py: add isInfoSupported to class Workflow.
parent
ee4588fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+13
-0
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
d96144a9
...
...
@@ -56,6 +56,7 @@ from Acquisition import aq_base
from
DateTime
import
DateTime
from
zLOG
import
LOG
,
ERROR
,
DEBUG
,
WARNING
from
Products.CMFCore.Expression
import
Expression
from
Products.ERP5Type.Cache
import
CachingMethod
class
Workflow
(
XMLObject
):
"""
...
...
@@ -199,6 +200,18 @@ class Workflow(XMLObject):
return
1
return
0
security
.
declarePrivate
(
'isInfoSupported'
)
def
isInfoSupported
(
self
,
ob
,
name
):
'''
Returns a true value if the given info name is supported.
'''
if
name
==
self
.
getStateBaseCategory
():
return
1
vdef
=
self
.
contentValues
(
portal_type
=
'Variable'
).
get
(
name
,
None
)
if
vdef
is
None
:
return
0
return
1
def
_checkTransitionGuard
(
self
,
tdef
,
document
,
**
kw
):
guard
=
tdef
.
getGuard
()
if
guard
is
None
:
...
...
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