[Zope] ZClass Error

Pete Kazmier pete@kazmier.com
Tue, 30 May 2000 11:33:03 -0400


I've created a ZClass that was subclassed from a custom Python class.
Everything is working well, thanks to the help of this mailing list,
but I am having one problem that I am unable to figure out.  

If I add my subclass to the root of my Zope world, then I am unable to
click on the Properties tab while managing it.  However, if I create
my ZClass anywhere else (ie not in the root), everything works fine.
Here is the traceback that I receive.  Any help would be appreciated,
I am also using 2.2.0a1.  Thanks.

Traceback (innermost last):
  File /home/zope/lib/python/ZPublisher/Publish.py, line 224, in
  publish_module
  File /home/zope/lib/python/ZPublisher/Publish.py, line 189, in
  publish
  File /home/zope/lib/python/Zope/__init__.py, line 221, in
  zpublisher_exception_hook
  File /home/zope/lib/python/ZPublisher/Publish.py, line 175, in
  publish
  File /home/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage)
  File /home/zope/lib/python/ZPublisher/Publish.py, line 112, in
  call_object
    (Object: manage)
  File /home/zope/lib/python/App/special_dtml.py, line 121, in
  __call__
    (Object: manage)
    (Info: /home/zope/lib/python/OFS/properties.dtml)
  File /home/zope/lib/python/DocumentTemplate/DT_String.py, line 500,
  in __call__
    (Object: manage)
  File /home/zope/lib/python/App/special_dtml.py, line 121, in
  __call__
    (Object: manage_tabs)
    (Info: /home/zope/lib/python/App/manage_tabs.dtml)
  File /home/zope/lib/python/DocumentTemplate/DT_String.py, line 500,
  in __call__
    (Object: manage_tabs)
  File /home/zope/lib/python/DocumentTemplate/DT_With.py, line 146, in
  render
    (Object: _(manage_options=filtered_manage_options()))
  File /home/zope/lib/python/DocumentTemplate/DT_With.py, line 133, in
  render
    (Object: _(option=manage_options[a_]))
  File /home/zope/lib/python/DocumentTemplate/DT_Util.py, line 333, in
  eval
    (Object: _(option=manage_options[a_]))
    (Info: manage_options)
  File <string>, line 0, in ?
NameError: (see above)

-- 
Peter Kazmier                                 http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654