## Script (Python) "cpsdocument_edit" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ """ return Info about the current Student """ info = {} if batch is None: if context.portal_type == 'ScratchCardBatch': batch = context else: return None info['batch_doc'] = batch.getContent() info['id'] = batch.getId() info['title'] = batch.Title or 'empty Title' info['unused'] = batch.getContent().getUnusedPins() return info