Newbie ZClass question
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
On Tue, Aug 20, 2002 at 04:06:17PM -0700, Michael S. Fischer wrote:
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
Answering my own question again -- this appears to be browser-related, ref. <http://collector.zope.org/Zope/121>. -- Michael S. Fischer / michael at dynamine.net / +1 650-533-4684 Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA
Michael S. Fischer writes:
On Tue, Aug 20, 2002 at 04:06:17PM -0700, Michael S. Fischer wrote:
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
Answering my own question again -- this appears to be browser-related, ref. <http://collector.zope.org/Zope/121>. I cannot believe this.
Whether or not a name is defined should be independent of the browser. The only thing I can imagine is that the "Authorization" information is not sent properly. But it is unlikely, that this happens only with ZClasses. Dieter
On Wed, Aug 21, 2002 at 08:24:33PM +0200, Dieter Maurer wrote:
I cannot believe this.
Whether or not a name is defined should be independent of the browser.
The only thing I can imagine is that the "Authorization" information is not sent properly. But it is unlikely, that this happens only with ZClasses.
Believe it. Did you read the discussion? -- Michael S. Fischer / michael at dynamine.net / +1 650-533-4684 Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA
participants (2)
-
Dieter Maurer -
Michael S. Fischer