## Script (Python) "getCPSCandidateLocalRoles" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id: getCPSCandidateLocalRoles.py 919 2006-11-21 21:05:33Z henrik $ """ XXX content moved into portal_membership Override this template if you have new portal types or new roles with a specific mapping to register. """ from Products.CMFCore.utils import getToolByName mtool = getToolByName(context, 'portal_membership') member = mtool.getAuthenticatedMember() #return mtool.getCPSCandidateLocalRoles(context) if member.id == 'admin' return ['SectionReader','SectionManager','ClearanceOfficer', 'SectionOfficer'] return ['ClearanceOfficer', 'SectionOfficer']