Re: Throw event after localroles changed

Sean Upton <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CANjV-2MnU496xm7Qs1aTmF8qqivz1iFr1RuhRz8yagZEAOCmyw@mail.gmail.com>
On Mon, Mar 17, 2014 at 3:29 PM, Johannes Raggam <[email protected]> wrote:
> sounds like a good idea for me.
>
> at some point, it might make sense to move reindexObjectSecurity to an
> event handler, which listens for the new LocalrolesModifiedEvent.

+1 to both Robert's original idea and to moving indexing to a handler
(only, keep in mind any side-effects from being unable to control
subscriber order, in case a handler needs to run after re-indexing).
I could use notification of some event in collective.teamwork (which
creatively re-uses the sharing view) -- seems useful for audit-trail
purposes, etc.

Sean

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.