## Script (Python) "isStudent" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: isStudent.py 874 2006-11-16 13:05:12Z joachim $ """ return True if the member is considered a Student """ roles = context.portal_membership.getAuthenticatedMember().getRolesInContext(context) return "Student" in roles