Updating data Plone memberdata: PropertiesUpdatedEvent not starting

I try to perform an action after updating the properties of the participant in @@ personal information, but the event does not fire. On configure.zcml, I added the following:

<subscriber for="Products.PluggableAuthService.interfaces.events.IPropertiesUpdatedEvent" handler=".subscribers.propertiesUpdated" /> 

I already tried using ipdb to check if the Updated properties of users.py are being executed, but that is not the case.

I checked the error report https://bugs.launchpad.net/zope-pas/+bug/795086 , which says that this error is fixed, but it still does not work.

I am using PluggableAuthService 1.10.0.

Is there a better way to solve this problem?

+6
source share
1 answer

The PropertiesUpdated event (implementing IPropertiesUpdatedEvent) does not fire in Plone code (see Plone 4.3).

The only event that fires after changing account information is plone.app.controlpanel.events.ConfigurationChangedEvent . You can subscribe to this event and filter (since this event is a common event issued in many places).

Something I do to find out what events are fired after the action: I add a print statement to zope.event.notify ( print event, event.__dict__ ) and run foreground mode.

You may need a boost at https://dev.plone.org or better implement it. The plone.app.users package is a good place to start.

+1
source

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


All Articles