[Zope-CMF] CVS broken
Robert Rottermann
robert@redcor.ch
Tue, 6 Aug 2002 07:47:25 +0200
After looking at the diff between the last two version I see that the new
code assumes that
products have to reside in a directory with the directory 'products in it.
This is not the case!!!
I use the environment variable PRODUCTS_PATH to point to my products which
do not reside in a directory with Products in the path.
Robert
----- Original Message -----
From: "Robert Rottermann" <robert@redcor.ch>
To: <zope-cmf@zope.org>
Sent: Monday, August 05, 2002 8:29 PM
Subject: [Zope-CMF] CVS broken
> I just checked out CMF from CVS.
> There is an error that prevenst loading of most of the products.
>
> it is in CMF\CMFCore\utils.py line 633
>
> def minimalpath(p):
> # Trims INSTANCE_HOME or SOFTWARE_HOME from a path.
> p = os_path.abspath(p)
> abs = normalize(p)
> try:
> p = abs[abs.index('products'):] <----------- dies
> except:
> print abs
> while p[:1] in separators:
> p = p[1:]
> return p
>
> the above code produced lines like:
>
> g:\projects\cmf\cmfdefault\skins\images
> g:\projects\cmf\cmfdefault\skins\control
> g:\projects\cmf\cmfdefault\skins\generic
>
> they have no 'products'
>
> Robert
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>