[Zope] AW: z2 startup exception, only with -D?

Dieter Maurer dieter at handshake.de
Sat Sep 27 01:46:29 EDT 2003


Chris McDonough wrote at 2003-9-26 15:08 -0400:
 > But in any case, things aren't going to work very well that depend on
 > the feature, whether Zope starts or doesn't, so it's best to figure out
 > what the problem really is and fix it at the root.

What about working at both places?

  It is not useful to prevent Zope's start in development mode
  when some product cannot be imported...


 > 
 > On Fri, 2003-09-26 at 13:27, Dieter Maurer wrote:
 > ...
 > > For unknown reasons, someone decided that Zope should die in development
 > > mode when a product cannot be imported. I expect this is more useful
 > > in production mode -- but who knows.
 > > 
 > > Your Zope has a problem with a product whether or not
 > > you start it with "-D". When I remember right, I already explained
 > > you this problem...
 > > 
 > > However, when you start Zope with "-D", it dies.
 > > 
 > > The code causing this is in "OFS.Appliction" in function "import_products".
 > > I changed it (in our Zope installation) to
 > > 
 > >         import_product(product_dir, product_name,
 > >                        # raise_exc=Globals.DevelopmentMode # DM: do not prevent start when a product import failed -- we may want to be stronger for production installations
 > >                        raise_exc=0
 > >                        )
 > > 
 > > to get rid of this unexpected behaviour...


Dieter



More information about the Zope mailing list