## Script (Python) "mass_register" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind state=state ##bind subpath=traverse_subpath ##parameters=dele=[] ##title=Register a user ## REQUEST=context.REQUEST from Products.CMFCore.utils import getToolByName tool = getToolByName(context, 'time_tool') for x in dele: tool.removeLecture(x) return state.set( portal_status_message="ok" )