## Script (Python) "unpay" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: epayment_cb.py 1348 2007-01-25 17:06:21Z henrik $ """ payment callback """ import logging logger = logging.getLogger('EPayment.Unpay') import DateTime request = context.REQUEST students = context.portal_url.getPortalObject().campus.students wftool = context.portal_workflow student_id = context.getStudentId() if student_id is None: return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) student = getattr(students,student_id) #wftool.doActionFor(student,'return') wftool.doActionFor(student,'clear_and_validate') logger.info('"%s", "reset to state returning"' % student_id) return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())