[Silva-general] Some sites don't update when auto-updating from 2.1->2.3
sylvain at infrae.com
Wed Jun 29 11:28:47 CEST 2011
On Tue, 28 Jun 2011 22:20:02 -0700
Dav Clark <dav at alum.mit.edu> wrote:
> I'd posted about updating issues earlier, and I think I've pretty
> much solved my problem (though perhaps not elegantly).
> In any case, it turns out (well, as best I can tell, anyway), that
> while the 2.3 automatic update script worked on several of the
> existing Silva 2.1 sites in my zope instance, others still required a
> press of the "upgrade content" button in service_extensions. Weird,
The silvaupdate script and clicking on the button "upgrade content"
does exactly the same thing (those are just two entry points to the
same exact code). The script is more secure as you are sure that
nobody access your site before the migration is over (Zope is
started, but does not listen for HTTP requests).
> I don't know what differentiates ones that got upgraded from ones
> that didn't. Their content was surprisingly similar. For example, the
> only real difference between layout_macro.html's was the presence of
> the following in my newer version:
> <meta name="generator" content="Silva" />
That's possible. We don't use that anymore, and it is mark obsolete.
We now implement all the skins using silva.core.layout.
In Silva 3.0 that Legacy layout feature will be gone.
> Another interesting wrinkle, the exported XML for an older site's
> layout_macro.html had the following:
> <global id="25716.1" name="ZopePageTemplate"
> module="Products.PageTemplates.ZopePageTemplate"/> </pickle>
> Whereas a newer site's file had the following header:
> <tuple id="75469.2">
> <global id="75469.1" name="ZopePageTemplate"
> module="Products.PageTemplates.ZopePageTemplate"/> <tuple/>
> Perhaps this is a clue?
I think here you did an export in ZMI using ZEXP feature. I have never
use the XML export for ZEXP, it is possible it changed in Zope.
This feature is a Zope feature, that Silva doesn't use, or rely on it.
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
More information about the silva-general