## Script (Python) "cpsdocument_edit" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ """ return Info about the current Student """ wf = context.portal_workflow mtool = context.portal_membership member = mtool.getAuthenticatedMember() info = {} student = getattr(context.students,str(member),None) if student is None: return info['review_state'] = wf.getInfoFor(student,'review_state','keiner') #info['wf_state'] = 'keiner' info['app'] = student.application info['app_doc'] = student.application.getContent() info['per'] = student.personal info['per_doc'] = student.personal.getContent() return info