[ZCM] [ZC] 1465/ 1 Request "Don't add INSTANCE_HOME/Products if it
doesn't exist"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Thu Aug 12 19:45:43 EDT 2004
Issue #1465 Update (Request) "Don't add INSTANCE_HOME/Products if it doesn't exist"
Status Pending, Zope/bug medium
To followup, visit:
http://zope.org/Collectors/Zope/1465
==============================================================
= Request - Entry #1 by richard on Aug 12, 2004 7:45 pm
In 2.7.2, Zope/Startup/handlers.py root_handler automatically adds INSTANCE_HOME/Products to the products search path, even if that directory doesn't exist. This then causes an exception later on when we try to access that directory. Modifying the code:
instanceprod = os.path.join(config.instancehome, 'Products')
if instanceprod not in config.products:
config.products.append(instanceprod)
to include a check:
instanceprod = os.path.join(config.instancehome, 'Products')
if os.path.exists(instanceprod) and instanceprod not in config.products:
config.products.append(instanceprod)
remedies this.
==============================================================
More information about the Zope-Collector-Monitor
mailing list