On Thursday 12 January 2006 14:11, Gary Poster wrote:
> 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 zope.app.authentication code.
> Fire events in the zope.app.authentication 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
> p are the methods that would fire the events.
For what it is still worth, +1.
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-dev mailing list