[Zope] Sudden ZClass breakage

Dieter Maurer dieter@handshake.de
Thu, 12 Sep 2002 23:30:29 +0200


Tim Wilson writes:
 > ...
 > 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?

We need "Error type" and "Error value" in addition to the traceback!

 > ...
 > line 159, in eval
 >     (Object: AnnouncementClass.createInObjectManager(REQUEST['id'],
 > REQUEST))
 >     (Info: REQUEST)
 >   File <string>, line 2, in f
 > NameError: global name 'AnnouncementClass' is not defined
Check the permission mapping of "Create class instances"
of your ZClass
and ensure, it is mapped sensefully and the current user has the
required permission.

There are hints that Zope sometimes looses permission assignments.
Check them.


Dieter