Back to index

plone3  3.1.7
topic_deleteCriteria.py
Go to the documentation of this file.
00001 ## Script (Python) "topic_deleteCriteria"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=REQUEST, RESPONSE, criterion_ids
00008 ##title=
00009 ##
00010 
00011 for cid in criterion_ids:
00012     context.deleteCriterion(cid)
00013 
00014 message = 'Criteria+deleted.'
00015 RESPONSE.redirect('%s/topic_criteria_form?portal_status_message=%s' % (
00016     context.absolute_url(), message)
00017                   )