## Script (Python) "isStudent" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: isStudent.py 885 2006-11-17 16:06:47Z joachim $ mtool = context.portal_membership roles = mtool.getAuthenticatedMember().getRolesInContext(context) return "Student" in roles