For four days now, I have been trying to build some simple products - using the Zope Book instructions on product creation and the basic objects that are created when you follow the instructions..... But to no avail - I always get this same error that I haven't a clue as to what it means..... Any help out there on what I'm doing wrong? WPH ----------------- Site Error An error was encountered while publishing this resource. NameError Sorry, a site error occurred. Traceback (innermost last): File /export/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /export/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /export/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: tbContainer_factory) File /export/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /export/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: tbContainer_add) File /export/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: tbContainer_add) File /export/Zope-2.5.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: tbContainer_add) File /export/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: tbContainer_add) File /export/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 61, in render (Object: tbContainer.createInObjectManager(REQUEST['id'], REQUEST)) File /export/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: tbContainer.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 2, in f NameError: global name 'tbContainer' is not defined ------------
On Sun, Aug 11, 2002 at 11:15:15AM -0700, William P Hewitt wrote:
For four days now, I have been trying to build some simple products - using the Zope Book instructions on product creation and the basic objects that are created when you follow the instructions.....
I can't speak for the Zope Book's product howtos, but if you just want to build custom objects (simple items or folderish), I'd start with the stuff at http://www.zope.org/Members/maxm/HowTo/easyProduct -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
William P Hewitt writes:
For four days now, I have been trying to build some simple products - using the Zope Book instructions on product creation and the basic objects that are created when you follow the instructions..... But to no avail - I always get this same error that I haven't a clue as to what it means..... ... 159, in zpublisher_exception_hook (Object: tbContainer_factory) File /export/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, ... /export/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: tbContainer_add) File /export/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 61, in render (Object: tbContainer.createInObjectManager(REQUEST['id'], REQUEST)) File /export/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: tbContainer.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 2, in f NameError: global name 'tbContainer' is not defined I have seen similar problems several times in the mailing list, but unfortunately, I cannot see what is wrong.
Everything seems to be fine. You are sure, your ZClass is named "tbContainer"? You are sure, the "Create ZClass instance" permission is mapped to some permission, the current user has? When you like (and your Product does not reference non-core Zope products), you can export the product and send me the result (zip'ed or gzip'ed please). I will try to find out what happens. Dieter
participants (3)
-
Dieter Maurer -
Mike Renfro -
William P Hewitt