## Script (Python) "isStaff" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: $ # if context.portal_membership.isAnonymousUser(): # return False # return not context.isStudent() mtool = context.portal_membership member = mtool.getAuthenticatedMember() member_id = str(member) o = ord(member_id[1]) return not (o >= 48 and o <= 57)