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
a4e8225d
Commit
a4e8225d
authored
Oct 13, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable.py: fix variable name info_guard.
parent
b97e694b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
product/ERP5Workflow/Document/Variable.py
product/ERP5Workflow/Document/Variable.py
+9
-10
No files found.
product/ERP5Workflow/Document/Variable.py
View file @
a4e8225d
...
@@ -50,7 +50,6 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
...
@@ -50,7 +50,6 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
for_status
=
1
for_status
=
1
default_value
=
''
default_value
=
''
default_expr
=
None
# Overrides default_value if set
default_expr
=
None
# Overrides default_value if set
info_guard
=
None
update_always
=
1
update_always
=
1
default_reference
=
''
default_reference
=
''
# Declarative security
# Declarative security
...
@@ -76,7 +75,7 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
...
@@ -76,7 +75,7 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
def
getInfoGuardSummary
(
self
):
def
getInfoGuardSummary
(
self
):
res
=
None
res
=
None
if
self
.
getGuard
()
is
not
None
:
if
self
.
getGuard
()
is
not
None
:
res
=
self
.
guard
.
getSummary
()
res
=
self
.
info_
guard
.
getSummary
()
return
res
return
res
def
getInfoGuard
(
self
):
def
getInfoGuard
(
self
):
...
@@ -84,20 +83,20 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
...
@@ -84,20 +83,20 @@ class Variable(IdAsReferenceMixin("variable_", "prefix"), XMLObject):
self
.
getPermissionList
()
is
None
and
\
self
.
getPermissionList
()
is
None
and
\
self
.
getGroupList
()
is
None
and
\
self
.
getGroupList
()
is
None
and
\
self
.
getExpression
()
is
None
and
\
self
.
getExpression
()
is
None
and
\
self
.
guard
is
None
:
self
.
info_
guard
is
None
:
return
None
return
None
else
:
else
:
self
.
generateGuard
()
self
.
generateGuard
()
return
self
.
guard
return
self
.
info_
guard
def
generateInfoGuard
(
self
):
def
generateInfoGuard
(
self
):
if
self
.
guard
is
None
:
if
self
.
info_
guard
is
None
:
self
.
guard
=
Guard
().
__of__
(
self
)
self
.
info_
guard
=
Guard
().
__of__
(
self
)
if
self
.
getRoleList
()
is
not
None
:
if
self
.
getRoleList
()
is
not
None
:
self
.
guard
.
roles
=
self
.
getRoleList
()
self
.
info_
guard
.
roles
=
self
.
getRoleList
()
if
self
.
getPermissionList
()
is
not
None
:
if
self
.
getPermissionList
()
is
not
None
:
self
.
guard
.
permissions
=
self
.
getPermissionList
()
self
.
info_
guard
.
permissions
=
self
.
getPermissionList
()
if
self
.
getGroupList
()
is
not
None
:
if
self
.
getGroupList
()
is
not
None
:
self
.
guard
.
groups
=
self
.
getGroupList
()
self
.
info_
guard
.
groups
=
self
.
getGroupList
()
if
self
.
getExpression
()
is
not
None
:
if
self
.
getExpression
()
is
not
None
:
self
.
guard
.
expr
=
Expression
(
self
.
getExpression
())
self
.
info_guard
.
expr
=
Expression
(
self
.
getExpression
())
\ No newline at end of file
\ No newline at end of file
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