Re: unreported upgrader errors

Andrew Altepeter <[email protected]> Thu, 5 May 2011 12:43:56 -0500
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hi Sylvain,

>   silvaupdate start Zope the same it is done with paster, however Zope
>   is started with debug mode set to false.
> 
>   In production mode, Zope ignore products that have errors, and
>   continue. That's the default behavior of Zope on that topic.
> 
>   silvaupdate already have a debug mode that prompt a PDB in case of
>   errors triggered by the update code. I guess you could easily add
> the
>   functionality you are talking about by changing line 55 in
>   silva.core.upgrade.script the boot_zope from:
> 
>   boot_zope(options.config) to
> 
>   boot_zope(options.config, options.debug).
> 
>   And run silvaupdate with --debug.
> 
>   I already made the change in Silva 2.3 and 3.0 branches and pushed
>   it in mercurial.

Thanks for the quick response.  I've merged with my branch is mercurial,
and it's working well!

Andy

> 
>   Regards,
> 
>   Sylvain,
> 
> --
> Sylvain Viollon -- Infrae
> t +31 10 243 7051 -- http://infrae.com
> Hoevestraat 10 3033GC Rotterdam -- The Netherlands
> 
>