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
138
Merge Requests
138
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
dffb5d64
Commit
dffb5d64
authored
Apr 12, 2021
by
Aurel
Committed by
Arnaud Fontaine
Jan 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manage_delObject now raise if empty params
parent
63d11df4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_addZuite.py
...lateItem/portal_skins/erp5_ui_test_core/Zuite_addZuite.py
+5
-2
No files found.
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_addZuite.py
View file @
dffb5d64
"""
Create a zuite or return an existing one after remove his contents.
"""
from
zExceptions
import
BadRequest
assert
context
.
getPortalType
()
==
"Test Tool"
,
"bad context"
if
REQUEST
:
raise
RuntimeError
(
"You can not call this script from the URL"
)
...
...
@@ -16,6 +17,8 @@ zuite = getattr(context.portal_tests, zuite_id)
if
zuite
.
getMetaType
()
!=
"ERP5 Test Tool"
:
raise
ValueError
(
"Zuite is not a ERP5 Test Tool"
)
zuite
.
manage_delObjects
(
zuite
.
objectIds
())
try
:
zuite
.
manage_delObjects
(
zuite
.
objectIds
())
except
BadRequest
:
pass
return
zuite
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