What about making a browser view and an action, then do it manually when you need it ?
In case it is of interest, its done here:
http://svn.plone.org/svn/collective/Products.PloneSubSkins/trunk/Products.PloneSubSkins/Products/PloneSubSkins/SubSkinsTool.py
(line 162,)

Espen

Den 2. mai 2012 kl. 07.41 skrev Nathan Van Gheem [via Plone]:

Right, restarts should not recook registries. If your code css/js changes either provide an upgrade step to cook or do it manually IMO.

On May 2, 2012 12:33 AM, "Malthe Borch" <<a href="x-msg://311/user/SendEmail.jtp?type=node&amp;node=7519053&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
>
> On 2 May 2012 00:20, Elizabeth Leddy <<a href="x-msg://311/user/SendEmail.jtp?type=node&amp;node=7519053&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
> > I am very unfamiliar with this code base so looking for a place to start looking to fix this. My initial inclination is that a restart automatically recooks all the registries. I'm looking for a piece of code that, on restart, looks for changes to the registries and recooks if necessary - anyone know where that exists?
>
> It's not that simple, because the "cooking" is persisted in the
> database such that all instances (in a network setup) get the
> configuration.
>
> \malthe
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Plone-developers mailing list
> <a href="x-msg://311/user/SendEmail.jtp?type=node&amp;node=7519053&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]
> https://lists.sourceforge.net/lists/listinfo/plone-developers


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plone-developers mailing list
<a href="x-msg://311/user/SendEmail.jtp?type=node&amp;node=7519053&amp;i=3" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-developers



If you reply to this email, your message will be added to the discussion below:
http://plone.293351.n2.nabble.com/Cooking-Resource-Registries-on-restart-tp7518369p7519053.html
To unsubscribe from Plone, click here.
NAML



View this message in context: Re: Cooking Resource Registries on restart
Sent from the Core Developers mailing list archive at Nabble.com.