## Script (Python) "mass_register" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind state=state ##bind subpath=traverse_subpath ##parameters= ##title=Register a user ## REQUEST=context.REQUEST users = context.prefs_user_group_search('','users') from Products.CMFCore.utils import getToolByName tool = getToolByName(context, 'time_tool') for x in tool.getLectures(): tool.setRelationsMap(x, REQUEST) return state.set( portal_status_message="changes saved" )