[Zope-CMF] CVS broken

Robert Rottermann robert@redcor.ch
Mon, 5 Aug 2002 20:29:11 +0200


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