## Script (Python) "isClearanceOfficer" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: isClearanceOfficer.py 1087 2006-12-18 22:13:31Z joachim $ #from Products.zdb import set_trace #set_trace() if context.isStudent(): return False mtool = context.portal_membership roles = mtool.getAuthenticatedMember().getRolesInContext(context) return "ClearanceOfficer" in roles