## Script (Python) "getStudentId" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: getStudentId.py 1025 2006-12-10 18:39:15Z joachim $ """ return StudentId from request """ ptl = context.REQUEST.get('PATH_TRANSLATED').split('/') id_index = ptl.index('students') if len(ptl) > id_index + 2: return ptl[id_index + 1] return None