[Zope-CMF] Re: Don't always set the modification date?

Florent Guillaume fg at nuxeo.com
Thu Feb 17 10:27:27 EST 2005

Paul Winkler  <pw_lists at slinkp.com> wrote:
> > > > Occasionally I use this workaround:
> > > > 
> > > >     obj.reindexObject(idxs=['suppress_notifyModified'])
> > 
> > That's a working workaround yes.
> let me see if i'm following this - so, you're relying on
> the fact that CMFCatalogAware.reindexObject() doesn't check
> the validity of index names, and only calls notifyModified()
> if the index list is empty? (I don't get why it does that
> anyway. What's reason for wanting different behavior when
> you pass specific indexes?)

The idea is that if you reindex a single index on an object, then it's
probably not a user-visible "modification" and doesn't really need to
call notifyModified. And that if you really want it you can still call
it by hand.


Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com

More information about the Zope-CMF mailing list