## Script (Python) "cpsdocument_edit" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id:defer_admission.py 486 2006-09-06 10:09:39Z joachim $ """ defer student and print Info. """ import DateTime current = DateTime.DateTime() request = context.REQUEST wf = context.portal_workflow mtool = context.portal_membership member = mtool.getAuthenticatedMember() roles = member.getRoles() info = context.getStudentInfo() info['app_doc'].edit(mapping={'defer_date':current,}) wf.doActionFor(info['student'],'defer') return context.defersvn_view(info=info)