Default ZClass constructor not working? (was: re: Zope.org feedba ck)
Hi, Thanks for your response. I kind of suspected that the PythonScript constructor would be a zope2.6 thing. Still leaves me with the default DTML Constructor Method for a ZClass not working. The traceback is: Site Error An error was encountered while publishing this resource. NameError Sorry, a site error occurred. Traceback (innermost last): File C:\Program Files\ZopeSite\lib\python\ZPublisher\Publish.py, line 150, in publish_module File C:\Program Files\ZopeSite\lib\python\ZPublisher\Publish.py, line 114, in publish File C:\Program Files\ZopeSite\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: tbEntry_factory) File C:\Program Files\ZopeSite\lib\python\ZPublisher\Publish.py, line 98, in publish File C:\Program Files\ZopeSite\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: tbEntry_add) File C:\Program Files\ZopeSite\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: tbEntry_add) File C:\Program Files\ZopeSite\lib\python\OFS\DTMLMethod.py, line 127, in __call__ (Object: tbEntry_add) File C:\Program Files\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 473, in __call__ (Object: tbEntry_add) File C:\Program Files\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 61, in render (Object: tbEntry.createInObjectManager(REQUEST['id'], REQUEST)) File C:\Program Files\ZopeSite\lib\python\DocumentTemplate\DT_Util.py, line 159, in eval (Object: tbEntry.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 2, in f NameError: global name 'tbEntry' is not defined Zope 2.5.1; platform: win2k. Installed the default binary build downloaded from zope.org. Never had any previous version of Zope installed. Any clues, anyone? --Tim
Leeuw van der, Tim wrote at 2003-1-10 16:04 -0600:
Still leaves me with the default DTML Constructor Method for a ZClass not working. The traceback is: ... NameError ... line 61, in render (Object: tbEntry.createInObjectManager(REQUEST['id'], REQUEST)) File C:\Program Files\ZopeSite\lib\python\DocumentTemplate\DT_Util.py, line 159, in eval (Object: tbEntry.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 2, in f NameError: global name 'tbEntry' is not defined Are you sure, the user has the right to create "tbEntry" instances.
Zope sometimes converts "Unauthorized" into "KeyError"s (I am astonished that you get a "NameError"). Check the "Permission" tab of your ZClass. It "Create instances" mapped correctly? Dieter
participants (2)
-
Dieter Maurer -
Leeuw van der, Tim