Hi I am working on an example from the Zope Web Application Construction Kit and I would like to know if anyone else had the same problem. Chapter 4 - making the ZClass 'ArticleClass' On page 125, ref Figure 4.36 On trying to add an Article, I get an error. =================================== Site Error An error was encountered while publishing this resource. NameError Sorry, a site error occurred. Traceback (innermost last): File C:\PROGRA~1\ZOPEWE~1\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\PROGRA~1\ZOPEWE~1\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\ZOPEWE~1\lib\python\Zope\__init__.py, line 226, in zpublisher_exception_hook (Object: ArticleClass_factory) File C:\PROGRA~1\ZOPEWE~1\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\ZOPEWE~1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: ArticleClass_add) File C:\PROGRA~1\ZOPEWE~1\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: ArticleClass_add) File C:\PROGRA~1\ZOPEWE~1\lib\python\OFS\DTMLMethod.py, line 199, in __call__ (Object: ArticleClass_add) File C:\PROGRA~1\ZOPEWE~1\lib\python\DocumentTemplate\DT_String.py, line 546, in __call__ (Object: ArticleClass_add) File C:\PROGRA~1\ZOPEWE~1\lib\python\DocumentTemplate\DT_With.py, line 133, in render (Object: ArticleClass.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\ZOPEWE~1\lib\python\DocumentTemplate\DT_Util.py, line 231, in eval (Object: ArticleClass.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 2, in f (Object: guarded_getitem) NameError: global name 'ArticleClass' is not defined ======================================== BTW, my local setup Zope Version (Zope 2.4.3 (binary release, python 2.1, win32-x86), python 2.1.0, win32) Python Version 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] System Platform win32
participants (1)
-
Greg McCall