[Grok-dev] Re: Keeping indexes up to date
Philipp von Weitershausen
philipp at weitershausen.de
Sun Aug 12 15:35:18 EDT 2007
Luciano Ramalho wrote:
> For the sake of the next newbies stumbling upon this thread...
>
> This was easy enough to fix, just one line:
>
> event.notify(lifecycleevent.ObjectModifiedEvent(book, IBook))
Nope. Read that documentatino of ObjectModifiedEvent again (or,
alternatively, my book). It should be something like this:
from zope.lifecycleevent import ObjectModifiedEvent, Attributes
info = Attributes(IBook, 'attributes', 'that', 'were', 'changed')
notify(ObjectModifiedEvent(book, info))
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Grok-dev
mailing list