[Zope] bizzarre management behaviour: can't edit ZClass methods

Darran Edmundson Darran Edmundson" <Darran.Edmundson@anu.edu.au
Tue, 22 May 2001 10:56:57 +1000

I've encountered a bizarre error.  I was editing my site
from home this morning without problem.  Here at work,
however, I'm getting key errors for *all* manage_workspace
links on DTML methods in my Products hierarchy.  (I.e., imagine
creating a ZClass and then trying to edit the index_html method,
only to get a KeyError on some property this definitely exists
in a property sheet.)  Note, I'm just trying to display the DTML
source code, not have Zope interpret it.  It's as  if manage_workspace
is showing the wrong view, trying to render the DTML rather than show
the method source.

Here's an example traceback:

Error Type: KeyError
Error Value: FirstName

Traceback (innermost last):
  File /opt/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in
  File /opt/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in
  File /opt/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in
    (Object: Traversable)
  File /opt/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 171, in
  File /opt/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160, in
    (Object: link)
  File /opt/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 112, in
    (Object: link)
  File /opt/zope/Zope-2.3.1/lib/python/OFS/DTMLMethod.py, line 189, in
    (Object: link)
  File /opt/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line
538, in __call__
    (Object: link)
KeyError: (see above)

I won't know until this evening if my home machine is now displaying the
same behaviour - or if it's something wrong with IE5 under Win2000.
Any ideas?