##parameters=member=None,sc_pin=None # $Id: process_waeup_login.py 522 2006-09-15 08:36:57Z joachim $ """ Process a student after login """ request = context.REQUEST response=request.response import DateTime current = DateTime.DateTime() # if request.form.get('submit') == 'Login': if "Manager" in member.getRoles(): return member_id = str(member) member.setProperties(last_login_time=current,login_time=current) student = getattr(context.campus.students,member_id,) application = student.application if context.portal_workflow.getInfoFor(student, 'review_state', None) == "created": student.content_status_modify(workflow_action="enter_application_pin") da = {} pin = request.get('pin') da['app_ac_pin'] = pin da['app_ac_date'] = current application.getContent().edit(mapping = da) return response.redirect("%s/application_form" % student.application.absolute_url())