We want to perform actions when a user is added to a group, and possibly when a user is removed from a group. There is no hook point for this currently in the code.

Fire events in the code when principals are added and removed from groups.

from zope import interface

def IPrincipalAddedToGroup(interface.Inteface):
group = interface.Attribute('the group to which the principal was added')
    principal = interface.Attribute('the principal added')

def IPrincipalRemovedFromGroup(interface.Inteface):
group = interface.Attribute('the group from which the principal was removed')
    principal = interface.Attribute('the principal removed')


In terms of implementation, it looks like and p are the methods that would fire the events.

I am aware of None.

Zope3-dev mailing list

Reply via email to