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 <string>, 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
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
On Thu, Sep 12, 2002 at 11:30:29PM +0200, Dieter Maurer wrote:
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!
Well now I'm really confused! Following your advice, I went in to replicate the error so I could include the error type and error value. Wouldn't you know it, the problem is gone! The only thing that I can imagine being related to this was that I packed the ZODB in the intervening time. I have no idea what happened. Thanks for the suggestion Dieter. Perhaps you have trans-Atlantic magical powers. -Tim -- 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
participants (2)
-
Dieter Maurer -
Tim Wilson