[Zope] Newbie ZClass question

Michael S. Fischer michael@dynamine.net
Tue, 20 Aug 2002 16:06:17 -0700


Following the example in the Zope Book, I tried creating a new Product
containing a ZClass "Quip" using the ZMI (2.5.1).

When I add an instance of the Quip product to a folder, the Add form
appears.  I then enter "test" as the ID and hit the "Add" button.  This
yields an error message with the following exception and stack dump:

Error Type: NameError
Error Value: global name 'Quip' is not defined

Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in
publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
    (Object: Quip_factory)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in
publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: Quip_add)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in
call_object
    (Object: Quip_add)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: Quip_add)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 473,
in __call__
    (Object: Quip_add)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_With.py, line 61, in
render
    (Object: Quip.createInObjectManager(REQUEST['id'], REQUEST))
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 159,
in eval
    (Object: Quip.createInObjectManager(REQUEST['id'], REQUEST))
    (Info: REQUEST)
  File <string>, line 2, in f
NameError: (see above)

Any idea what's happening here?

-- 
Michael S. Fischer / michael at dynamine.net / +1 650-533-4684
Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA