Hi, After reading http://www.zope.org/Members/4am/instancehome, I just transformed my standard Zope 2.6.2 installation (on RedHat 7) into a INSTANCE_HOME version, like this (view in fixed width font): / +-opt | +-Zope-2.6.2 (ZOPE_HOME) | | : | | `-lib | | `-python | | `-Products | +-Zope-2.6.4-rc1 | : | `-home `-zope +-shared_products | +-FrameTitle | +-FSCounter | `-ExternalEditor `-instances +-main (INSTANCE_HOME) | +-var | +-import here? | +-shared_products --> /home/zope/shared_products | `-Products or here? | `-shared_products --> /home/zope/shared_products `-test (other INSTANCE_HOME) +-var +-import `-Products This works fine, with one exception: I didn't manage yet to get Zope recognise the products in the shared_products folder. I tried a lot of variants of case and softlink location, but without success, and I couldn't find anything in the web. How exactly is this supposed to work? Are there any special __init__.py files needed anywhere? tia, Tobias
On Thu, Jan 29, 2004 at 05:08:09PM +0100, Tobias Herp wrote:
Hi,
After reading http://www.zope.org/Members/4am/instancehome, I just transformed my standard Zope 2.6.2 installation (on RedHat 7) into a INSTANCE_HOME version, like this (view in fixed width font): (snip) This works fine, with one exception: I didn't manage yet to get Zope recognise the products in the shared_products folder. I tried a lot of variants of case and softlink location, but without success, and I couldn't find anything in the web. How exactly is this supposed to work? Are there any special __init__.py files needed anywhere?
You need to add shared_products to the PRODUCTS_PATH environment variable. (This changes to a setting in the config file for zope 2.7, I don't know exactly what.) Note that most products work fine in any location on $PRODUCTS_PATH, with one exception: CMF and related products (like Plone). There seems to be a bug (reported) in FSDirectoryView which makes it work only in $INSTANCE_HOME/Products or $SOFTWARE_HOME/lib/python/Products. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's ERGONOMIC VIBRATOR JANITOR! (random hero from isometric.spaceninja.com)
Tobias Herp wrote at 2004-1-29 17:08 +0100:
After reading http://www.zope.org/Members/4am/instancehome, I just transformed my standard Zope 2.6.2 installation (on RedHat 7) into a INSTANCE_HOME version, like this (view in fixed width font): ... here? | +-shared_products --> /home/zope/shared_products ... This works fine, with one exception: I didn't manage yet to get Zope recognise the products in the shared_products folder.
There is an environment variable that allows you to specify additional folders containing Products. It is a bit difficult to use. If you are lucky, you find it documented in "doc/environment.txt" (or similar); if not, look at "App/FindHomes.py"; there the product detection magic is set up. With Zope 2.7, it will become very easy... -- Dieter
participants (3)
-
Dieter Maurer -
Paul Winkler -
Tobias Herp