[Zope] Sudden ZClass breakage

Tim Wilson wilson@visi.com
Wed, 11 Sep 2002 19:30:21 -0500


Hi everyone,

I use a simple little ZClass to post announcements on my site. Recently,
and without any help from me, adding new announcements fails with the
following traceback. I didn't change a single thing related to this
ZClass, but it just broke. Can anyone offer a suggestion about what is
going on?

-Tim

<!--
Traceback (innermost last):
  File /home/wilson/zope/2.5.1/lib/python/ZPublisher/Publish.py, line
150, in publish_module
  File /home/wilson/zope/2.5.1/lib/python/ZPublisher/Publish.py, line
114, in publish
  File /home/wilson/zope/2.5.1/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
    (Object: AnnouncementClass_factory)
  File /home/wilson/zope/2.5.1/lib/python/ZPublisher/Publish.py, line
98, in publish
  File /home/wilson/zope/2.5.1/lib/python/ZPublisher/mapply.py, line 88,
in mapply
    (Object: AnnouncementClass_add)
  File /home/wilson/zope/2.5.1/lib/python/ZPublisher/Publish.py, line
39, in call_object
    (Object: AnnouncementClass_add)
  File /home/wilson/zope/2.5.1/lib/python/OFS/DTMLMethod.py, line 127,
in __call__
    (Object: AnnouncementClass_add)
  File /home/wilson/zope/2.5.1/lib/python/DocumentTemplate/DT_String.py,
line 473, in __call__
    (Object: AnnouncementClass_add)
  File /home/wilson/zope/2.5.1/lib/python/DocumentTemplate/DT_With.py,
line 61, in render
    (Object: AnnouncementClass.createInObjectManager(REQUEST['id'],
REQUEST))
  File /home/wilson/zope/2.5.1/lib/python/DocumentTemplate/DT_Util.py,
line 159, in eval
    (Object: AnnouncementClass.createInObjectManager(REQUEST['id'],
REQUEST))
    (Info: REQUEST)
  File &lt;string&gt;, line 2, in f
NameError: global name 'AnnouncementClass' is not defined

-->

-- 
Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com