## 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.time_tool.getTeachers() message = "" from Products.CMFCore.utils import getToolByName tool = getToolByName(context, 'time_tool') for x in users: tool.setTeacherMap(x, REQUEST) return state.set( portal_status_message=message ) return state.set( portal_status_message=REQUEST.total_juku6_hours )