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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
462b89ed
Commit
462b89ed
authored
Oct 14, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testGUIwithSecurity: workaround a missing interaction on portal_property_sheets
parent
a58f624e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5Form/tests/testGUIwithSecurity.py
product/ERP5Form/tests/testGUIwithSecurity.py
+8
-0
No files found.
product/ERP5Form/tests/testGUIwithSecurity.py
View file @
462b89ed
...
...
@@ -151,6 +151,10 @@ class TestGUISecurity(ERP5TypeTestCase):
"""
self
.
portal
.
portal_property_sheets
.
Reference
.
reference_property
.
setReadPermission
(
'Manage contents'
,)
# XXX setReadPermission has an interaction that will call
# portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
# but this is not enough we need to:
self
.
portal
.
portal_components
.
resetOnceAtTransactionBoundary
()
def
stepResetPropertySecurity
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
...
...
@@ -158,6 +162,10 @@ class TestGUISecurity(ERP5TypeTestCase):
"""
self
.
portal
.
portal_property_sheets
.
Reference
.
reference_property
.
setReadPermission
(
'Access contents information'
)
# XXX setReadPermission has an interaction that will call
# portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
# but this is not enough we need to:
self
.
portal
.
portal_components
.
resetOnceAtTransactionBoundary
()
def
test_01_relationFieldToInaccessibleObject
(
self
):
"""
...
...
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