[Zope3-dev] Workflow doesn't trigger IObjectModifiedEvent

2005-05-08 Thread Ivo van der Wijk
Hi,

I'm currently playing with a Workflow/Catalog mix, trying to index
workflow states (so I can simply search for published content - a
common usecase in CMF).

However, it appears that workflow statechanges do not trigger
IObjectModifiedEvent, to which the catalog subscribes to track changes
and reindex objects.

This might be workflow specific, it might also apply for all
IAnnotable data (not sure).

I can (and for now probably will) work around this in my own code. Is
there a reason for the above behaviour?

Cheers

 Ivo
-- 
Drs. I.R. van der Wijk  -=-
Korte Leidsedwarsstraat 12 Amaze
1017 RC Amsterdam, NL   -=-
T +31-20-4688336 F +31-20-4688337   Zope/Plone/Content Management
W http://www.amaze.nlE [EMAIL PROTECTED]   Open Source Solutions
W http://vanderwijk.info E [EMAIL PROTECTED] Consultancy
PGP http://vanderwijk.info/pgp
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Workflow doesn't trigger IObjectModifiedEvent

2005-05-08 Thread Dieter Maurer
Ivo van der Wijk wrote at 2005-5-8 11:34 +0200:
I'm currently playing with a Workflow/Catalog mix, trying to index
workflow states (so I can simply search for published content - a
common usecase in CMF).

However, it appears that workflow statechanges do not trigger
IObjectModifiedEvent, to which the catalog subscribes to track changes
and reindex objects.

This might be workflow specific, it might also apply for all
IAnnotable data (not sure).

I think the interaction between annotation changes (among them
workflow state changes) and the catalog is not yet well
understood.

There was a discussion some months ago about this, mainly
between Jim and me. I proposed something like
a DependentObjectModifiedEvent(dependentObject, primaryObject),
deriving from ObjectModifiedEvent, as an efficient
way to communicate with the catalog.

The catalog could use primaryObject to determine the
document id but dependentObject to determine a more narrow
set of indexes that need to be updated.

Jim proposed a set of alternative approaches.

-- 
Dieter
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com