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
Labels
Merge Requests
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
a53a1433
Commit
a53a1433
authored
Feb 28, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo.
parent
332c57ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
product/ERP5Type/tests/SecurityTestCase.py
product/ERP5Type/tests/SecurityTestCase.py
+8
-8
No files found.
product/ERP5Type/tests/SecurityTestCase.py
View file @
a53a1433
...
...
@@ -184,10 +184,10 @@ class SecurityTestCase(ERP5TypeTestCase):
try
:
self
.
_loginAsUser
(
username
)
user
=
getSecurityManager
().
getUser
()
valid_transi
s
tion_list
=
[
ai
[
'id'
]
for
ai
in
self
.
workflow_tool
.
listActions
(
object
=
document
)
if
ai
[
'category'
]
==
'workflow'
]
if
transition
in
valid_transi
s
tion_list
:
valid_transition_list
=
[
ai
[
'id'
]
for
ai
in
self
.
workflow_tool
.
listActions
(
object
=
document
)
if
ai
[
'category'
]
==
'workflow'
]
if
transition
in
valid_transition_list
:
self
.
fail
(
'User %s can pass %s transition on %s %s. Roles: [%s]'
%
(
username
,
transition
,
document
.
getPortalTypeName
(),
document
,
", "
.
join
(
user
.
getRolesInContext
(
document
))))
...
...
@@ -201,10 +201,10 @@ class SecurityTestCase(ERP5TypeTestCase):
try
:
self
.
_loginAsUser
(
username
)
user
=
getSecurityManager
().
getUser
()
valid_transi
s
tion_list
=
[
ai
[
'id'
]
for
ai
in
self
.
workflow_tool
.
listActions
(
object
=
document
)
if
ai
[
'category'
]
==
'workflow'
]
if
transition
not
in
valid_transi
s
tion_list
:
valid_transition_list
=
[
ai
[
'id'
]
for
ai
in
self
.
workflow_tool
.
listActions
(
object
=
document
)
if
ai
[
'category'
]
==
'workflow'
]
if
transition
not
in
valid_transition_list
:
# Build a comprehensive error message
workflow_states_description
=
[]
workflow_transitions_description
=
[]
...
...
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