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
a19e00b5
Commit
a19e00b5
authored
Mar 23, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable.py: add guard auto generator.
parent
4af43b68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5Workflow/Document/Variable.py
product/ERP5Workflow/Document/Variable.py
+3
-1
No files found.
product/ERP5Workflow/Document/Variable.py
View file @
a19e00b5
...
...
@@ -91,7 +91,8 @@ class Variable(XMLObject):
if
self
.
info_guard
is
not
None
:
return
self
.
info_guard
else
:
return
Guard
().
__of__
(
self
)
# Create a temporary guard.
self
.
generateGuard
()
return
self
.
guard
def
getInfoGuardSummary
(
self
):
res
=
None
...
...
@@ -99,6 +100,7 @@ class Variable(XMLObject):
res
=
self
.
info_guard
.
getSummary
()
return
res
### zwj: originated from DC workflow; seems useless here?
def
setProperties
(
self
,
description
,
default_value
=
''
,
default_expr
=
''
,
for_catalog
=
0
,
for_status
=
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