[Zope-CMF] CMFComplexDocument Install problem

Tres Seaver tseaver@zope.com
Thu, 02 May 2002 07:58:21 -0400


rickpolus wrote:
> I have just installed CMFComplexDocument and receive the following 
> error in the Zope managment interface in its Product folder:
> 
> Traceback (most recent call last):
>   File "/usr/local/Zope-2.5.0-linux2-
> x86/lib/python/OFS/Application.py", line 531, in import_product
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "/usr/local/Zope-2.5.0-linux2-
> x86/lib/python/Products/CMFComplexDocument/__init__.py", line 9, in ?
>     import ComplexDocument
>   File "/usr/local/Zope-2.5.0-linux2-
> x86/lib/python/Products/CMFComplexDocument/ComplexDocument.py", line 
> 20, in ?
>     from Products.CMFCore.WorkflowCore import WorkflowAction, 
> afterCreate
> ImportError: cannot import name afterCreate
> 
> Zope version: 2.5.0
> CMF version: 1.3-beta1

'afterCreate' is not present in CMF 1.2 and later (since last August,
at least).

> How do I fix this?

Remove that line from ComplexDocument.py; look for any other code
which uses 'afterCreate' (typically, it would be called in the
contstructor), and remove that as well.  Then send a patch to the
mainainer of CMFComplexDocument.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com