INSTANCE_HOME - where are my Products???
I've just switched to using an $INSTANCE_HOME, following the HOWTO at Two problems: 1) The HOWTO needs to be updated for Zope 2.4.x - you can't use PYTHONHOME as an environment variable anymore, Python reserves that for its own purposes. No big deal, I just call it ZHOME instead. 2) I moved my Products from lib/python/Products to $INSTANCE_HOME/Products. Now when I start Zope, all my products show up in the Products management page and appear to be OK, but all existing instances are broken, and my Products don't show up in the "Select type to add..." list. Log shows nothing unusual until I visit a directory containing one of these products, then I get this: 2001-11-05T20:24:49 PROBLEM(100) ZODB Could not import class 'ZopeHolCategories' from module 'Products.ZopeHolCategories.ZopeHolCategories' ------ 2001-11-05T20:24:49 PROBLEM(100) ZODB Could not import class 'ZopeCalOrder' from module 'Products.ZopeCalOrder.ZopeCalOrder' But everything's there ... for example: $ cd $INSTANCE_HOME/Products $ ls ZopeCalOrder/ cal_icon.png __init__.py refresh.txt ZopeCalOrder.py index.zpt README.txt ZopeCalOrderAdd.zpt I'm running Zope 2.4.2, python 2.1.1 on linux. -- paul winkler home: http://www.slinkp.com music: http://www.reacharms.com calendars: http://www.calendargalaxy.com
I wrote:
2) I moved my Products from lib/python/Products to $INSTANCE_HOME/Products. Now when I start Zope, all my products show up in the Products management page and appear to be OK, but all existing instances are broken, and my Products don't show up in the "Select type to add..." list.
Whoops. Sometimes it's the simplest things... The start script that ships with Zope sets an environment variable INST_HOME. This needs to be changed to INSTANCE_HOME in order for Zope to find the products there. It's spelled INSTANCE_HOME in the HOWTO, but I overlooked that detail... -- paul winkler home: http://www.slinkp.com music: http://www.reacharms.com calendars: http://www.calendargalaxy.com
participants (1)
-
Paul Winkler