[Zope-dev] PluggableAuthService and PrincipalDeleted

Tarek Ziadé ziade.tarek at gmail.com
Wed Apr 16 05:12:46 EDT 2008


Hi,

the IPrincipalDeleted event is never notified. As a matter of fact,
this would be useful to be able to trigger some cleanup in various
plugins,
when user data has to be cleaned up.

(FYI the PrincipalCreated event has a nice high level API _doAddUser
that triggers IPrincipalCreated but no high level API for deletion)

PAS also provides an  IUserAdderPlugin interface for plugins that adds users.

For deletion, I would like to do some changes into PAS:

- add a IUserRemoverPlugin interface that adds a removeUser *or*
rename IUserAdderPlugin to IUserManagerPlugin, but the latter would
involve a lot of trouble i think
- make ZODBUserManager implements it
- add a notify(PrincipalDeleted(user_id))   in ZODBUserManager

This would be helpfull to catch the event in various plugins

My final goal is to make sure user properties are cleaned up in
PlonePAS when a user is removed.


Opinions ?


Tarek
-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/


More information about the Zope-Dev mailing list