[Zope-CMF] upgrade to CMF1.2; pecularities.

Lucas Hofman lucas.hofman@pgs.com
Mon, 28 Jan 2002 12:10:52 +0100


Tres Seaver wrote:

> 
> This message is generated because your existing 'portal_catalog'
> contains "old-style" indexes.  There is an upgrade script available,
> designed to be run as an ExternalMethod:
> 
>   Module: CMFDefault.update_catalogIndexes
> 
>   Function: update_catalogIndexes
> 
> And yes, this problem should be noted in ISSUES.txt (reading your
> other e-mail, where you discover the source of the problem).
> 


Looking at the script I wonder why only the allowedRolesAndUsers, the 
effective and the expires indexes are updated.

In addition the script crashes:

Error Type: AttributeError
Error Value: 'None' object has no attribute 'script'

Traceback (innermost last):
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 
223, in publish_module
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 
187, in publish
   File /usr/share/Zope-2.4.3-linux2-x86/lib/python/Zope/__init__.py, 
line 226, in zpublisher_exception_hook
     (Object: research)
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 
171, in publish
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/mapply.py, line 
160, in mapply
     (Object: updateIndexes)
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 
112, in call_object
     (Object: updateIndexes)
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/Products/ExternalMethod/ExternalMethod.py, 
line 274, in __call__
     (Object: updateIndexes)
     (Info: ((<SeresPortalBase instance at 94d2a98>,), {}, None))
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/Products/CMFDefault/Extensions/update_catalogIndexes.py, 
line 14, in update_catalogIndexes
     (Object: research)
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py, 
line 529, in manage_reindexIndex
     (Object: portal_catalog)
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py, 
line 513, in reindexIndex
     (Object: portal_catalog)
   File 
/usr/share/Zope-2.4.3-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py, 
line 795, in resolve_url
     (Object: portal_catalog)
AttributeError: (see above)


Regards,
Lucas