I'd like to attach the firing of an event with the "manage_setLocalRoles" method. Like this:
def send_participation_request(self):
review_state = self.portal_workflow.getInfoFor(self.context, "review_state", "")
if review_state =="public":
self.context.manage_setLocalRoles(user.id,["Role"]) #fire event
self.context.reindexObjectSecurity()
return False
Any suggestions?