[Zope] Re: KeyError; Value: 6; zwiki recent;]

Florian Konnertz florian.konnertz@web.de
Sat, 07 Sep 2002 17:02:51 +0200


Dieter Maurer wrote:
 > Florian Konnertz writes:
 >  > ...
 > "KeyError; Value 6" means, something is looking up the name "6"
 > and has no luck.
 >
 > Usually, you get a very valuable traceback ;-)
 >
 > It shows you, where the error is detected (in its last line)
 > and looking a bit upward, you will usually see your object
 > that caused it.
 >
 > Look at you traceback and try to understand it...

Ok, far sure!  The traceback is the way to go. I am sorry about not
having tried to examine it further before posting, i guess the reason
is, i still have too much respect of looking into the source because
zope is such a huge thing... I could give it a try, i know some python
and i want to contribute and learn more, so i should start... hehe ;-)

Here's the traceback:
Traceback (innermost last):
    File /usr/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
150, in publish_module
    File /usr/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
114, in publish
    File /usr/src/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159,
in zpublisher_exception_hook
      (Object: MyZWiki)
    File /usr/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
98, in publish
    File /usr/src/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py, line
88, in mapply
      (Object: RecentChanges)
    File /usr/src/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line
39, in call_object
      (Object: RecentChanges)
    File /usr/src/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py,
line 162, in __call__
      (Object: RecentChanges)
    File /usr/src/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py,
line 179, in _render
      (Object: RecentChanges)
    File /usr/src/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py,
line 296, in render_htmldtml
      (Object: RecentChanges)
    File /usr/src/Zope-2.5.1-src/lib/python/OFS/DTMLDocument.py, line
127, in __call__
      (Object: RecentChanges)
    File
/usr/src/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_String.py, line
473, in __call__
      (Object: RecentChanges)
    File /usr/src/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py,
line 695, in renderwob
      (Object: aq_parent.objectValues(spec='ZWiki Page'))
    File /usr/src/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_Util.py,
line 159, in eval
      (Object: bobobase_modification_time().toZone(zwiki_timezone).Date())
      (Info: bobobase_modification_time)
    File <string>, line 2, in f
    File /usr/src/Zope-2.5.1-src/lib/python/DateTime/DateTime.py, line
1064, in toZone
KeyError: (see above)


Briefly my first approach:

* Object: MyZWiki (Zwiki), RecentChanges

* First occurence: Edited WikiPage with external editor (vim). Error
occured after first try to access RecentChanges.

* Used products (with possibel causality to error):
http://www.zope.org/Members/Caseman/ExternalEditor

* Possible explanation, assumption: Last modification time falsely set,
changed, compared by editor and or RecentChanges object!??


Your comments, please!

Regards,
Florian


-- 
Have a nice day!

Florian Konnertz

* www.florian-konnertz.de
* www.openspirit.de    consciousness research and wisdom traditions
* www.openmovie.org    movie and mp3 -player projects