Can I have my old tracebacks please? (2.6.0 not same as 2.5.1)
Hi all, I've just spent the best part of Sunday going through the 2.6.0 distribution (mostly in doc/ and lib/OFS/SimpleItem.py, with lots of grepping for all sorts of strings), google, and the mailing list archives trying to figure this out. No joy. Here's a 2.5.1 traceback for a NotFound error <!-- Traceback (innermost last): File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /home/zope/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: resources) File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 89, in publish File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/BaseRequest.py, line 311, in traverse File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/HTTPResponse.py, line 492, in notFoundError NotFound: (see above) --> The unfound object is in the folder called 'resources'. If there's an error in a script, that And here's the same one for 2.6.0 (this time a KeyError Error) <!-- <p>Traceback (innermost last): <ul> <li> Module ZPublisher.Publish, line 98, in publish</li> <li> Module ZPublisher.mapply, line 88, in mapply</li> <li> Module ZPublisher.Publish, line 39, in call_object</li> <li> Module OFS.DTMLDocument, line 131, in __call__</li> <li> Module DocumentTemplate.DT_String, line 474, in __call__</li> <li> Module DocumentTemplate.DT_In, line 625, in renderwob</li> <li> Module Shared.DC.ZRDB.DA, line 414, in __call__</li> <li> Module DocumentTemplate.DT_String, line 474, in __call__</li> </ul>KeyError: cat_code </p> --> It seems the 'Object' line is missing. I've edited my standard_error_message so I have ; ... <dtml-var standard_html_footer> <!-- <dtml-var error_tb> --> Can anyone give me an idea of how to get 2.5.1 functionality back (just Object would be enough I think). TIA Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
participants (1)
-
Tony McDonald