Skip to content

simahawk/pas.plugins.userdeletedevent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

PAS plugin that fires "Products.PluggableAuthService.interfaces.events.IPrincipalDeletedEvent" on user deletion.

Once you installed it you can you can register subscribers for handling user deletion in a Plone site.

You can simply create a subscriber for hooking to this event like this:

<subscriber

for="Products.PluggableAuthService.interfaces.events.IPrincipalDeletedEvent" handler=".subscribers.userDeleted" />

You'll get the deleted user's id from the event object passed to the handler:

def userDeleted(event):

userid = event.object # do something here [...]

About

PAS plugin for triggering proper event on user deletion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages