[Grok-dev] A thought on the severe local utility problem
Sebastian Ware
sebastian at urbantalk.se
Wed Aug 19 07:04:31 EDT 2009
The ZMI supports "reindex" so one can enter the ZMI to add an index
and reindex it for a running application. So my guess is that
populating the index is doable.
Mvh Sebastian
On 19 aug 2009, at 12.07, Jeroen Michiel wrote:
>
> I have been thinking about this problem, too.
>
> The main problem is that the local utilities can only be created 'at
> run-time', and not 'at grok-time'.
> So they are added in a IObjectAdded handler for you app.
>
> I was thinking: wouldn't it be a good idea to has some sort of
> 'IServerStarted' event (or does this actually exist)? Then you
> could, each
> time the server starts, check if all localutilities exist, and if
> they don't
> create them. Of course, you then still have the problem of how to
> handle
> object that are already in the database (for instance if you added a
> catalog
> at a later time), but perhaps there's a straight-forward way of
> fixing that?
> Just an idea...
>
> Jeroen
> --
> View this message in context: http://www.nabble.com/A-thought-on-the-severe-local-utility-problem-tp25040156p25041342.html
> Sent from the Grok mailing list archive at Nabble.com.
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list