[ZCM] [ZC] 1132/ 2 Resolve "startup fails if enable-product-installation off "

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri May 28 13:41:44 EDT 2004


Issue #1132 Update (Resolve) "startup fails if enable-product-installation off "
 Status Resolved, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1132

==============================================================
= Resolve - Entry #2 by mcdonc on May 28, 2004 1:41 pm

 Status: Pending => Resolved

I have added a note explaining that Zope needs to be started at least once for this directive to be useful in the zope.conf.in docs.
________________________________________
= Request - Entry #1 by x on Nov 24, 2003 10:43 am

Using an plain "in place" Zope 2.7 b3 install.

If "enable-product-installation off" is set in etc/zope.conf before zope is run, zope will not start up (traceback below). 

If zope has been run once with the default ("enable-product-installation on") then it will start normally, and 
if "enable-product-installation off" is set it will still start normally.

I assume this is because the OFSP product (and possibly others) need to be registered/installed. Running zope normally with product installation on then is necessary for at least the first time zope is run, to ensure the default products are available to Zope in subsequent runs. Or perhaps certain core products need to be exceptions that are "installed" every time, even when the above option is "off".

Traceback (most recent call last):
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/Zope/Startup/run.py", line 27, in ?
    run()
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/Zope/Startup/run.py", line 24, in run
    start_zope(opts.configroot)
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/Zope/Startup/__init__.py", line 50, in start_zope
    starter.startZope()
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/Zope/Startup/__init__.py", line 221, in startZope
    Zope.startup()
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/Zope/__init__.py", line 46, in startup
    _startup()
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/Zope/App/startup.py", line 95, in startup
    OFS.Application.initialize(application)
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/OFS/Application.py", line 421, in initialize
    install_standards(app)
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/OFS/Application.py", line 721, in install_standards
    app.manage_addProduct['OFSP'].manage_addDTMLMethod(
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/App/FactoryDispatcher.py", line 26, in __getitem__
    return self.__bobo_traverse__(None, name)
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/App/FactoryDispatcher.py", line 29, in __bobo_traverse__
    product=self.aq_acquire('_getProducts')()._product(name)
  File "/usr/home/x/work/x/Zope-2.7.0-b3/lib/python/App/Product.py", line 67, in _product
    def _product(self, name): return getattr(self, name)
AttributeError: OFSP





==============================================================




More information about the Zope-Collector-Monitor mailing list