Event handlers based on user actions in Plone

I want to do something programmatically when the user is created.

When can a user subscribe to a specific event? It would be great if I could:

<subscriber for="IUserRegisteredEvent" handler=".registration.welcome_email" /> 

Also: Is the IMemberData interface representing the user in Plone correct? So that I can adapt it and do such things:

 user_activity = IUserActivityStream(member) user_activity.log(event) 
+4
source share
1 answer

This question is almost identical to this . Therefore, the correct interface for the subscriber: Products .PluggableAuthService.interfaces.events.IPrincipalCreatedEvent

+4
source

Source: https://habr.com/ru/post/1380122/


All Articles