Commit ac379dfa authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

manage_delObjects now raises if emtpy list is given as param

parent 8af4de9b
from zExceptions import BadRequest
portal_tests = container.portal_tests
if test_zuite_relative_url is not None:
# we care for a specific test zuite
portal_tests = portal_tests.restrictedTraverse(test_zuite_relative_url,\
portal_tests)
# remove test results from previous test runs
portal_tests.manage_delObjects([x.getId() \
try:
portal_tests.manage_delObjects([x.getId() \
for x in portal_tests.objectValues('Zuite Results')])
except BadRequest:
pass
print "OK"
return printed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment