0d306d8ced26b49b6c41ac1dc5232f5a4bb251c2
1 ##parameters=delete='', empty='', indexes=[], ajax=''
2 from ZTUtils
import make_query
3 request
= context
.REQUEST
4 response
= request
.RESPONSE
7 message
= 'Clipboard emptied.'
8 response
.expireCookie('__cp', path
=request
['BASEPATH1'] or "/")
11 message
= 'Please select one or more items first.'
12 elif len(indexes
) == 1 :
13 message
= 'Item removed from clipboard.'
15 message
= 'Items removed from clipboard.'
16 context
.popCP(indexes
)
20 redirUrl
= request
['HTTP_REFERER'].split('?')[0] + \
21 '?' + make_query(portal_status_message
=message
)
22 response
.redirect(redirUrl
)