[Zope-CMF] CMFBoringContent.py
Norman Khine
khine@btinternet.com
Sun, 5 Aug 2001 18:56:17 +0100
Hi,
trying to follow the CMFBoringContent how-to, I am obstructed by the
following error when I restart the server.
2001-08-05T16:45:17 ERROR(200) Zope Could not import
Products.CMFBoringProduct
Traceback (innermost last):
File /usr/home/dsuk5/zope/2.4.0/lib/python/OFS/Application.py, line 552,
in import_product
File
/usr/home/dsuk5/zope/2.4.0/lib/python/Products/CMFBoringProduct/__init__.py,
line 8, in ?
File
/usr/home/dsuk5/zope/2.4.0/lib/python/Products/CMFBoringProduct/CMFBoringCon
tent.py, line 10, in ?
(Object: os)
ImportError: cannot import name afterCreate
Now looking at the line 10 for CMFBoringContent.py we have:
from Products.CMFCore.WorkflowCore import WorkflowAction, afterCreate
removing ', afterCreate' the from CMFBoringContent.py loads the product
correctly, BUT when I try to add CMFBoringContent from the CMF I get the
following error:
Error Type: NameError
Error Value: global name 'afterCreate' is not defined
how is afterCreate defined correctly and where does it reside?
many thanks
norman
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
zz/********/z/****\zzz|****\*\zz|*******|z
z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine
zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net
zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley
z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK
zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz
zz/******/zz\******/zz|*|zzzzzzz|*|*****|z
z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz