[Grok-dev] How do I get the stack trace in an exception view?

Sebastian Ware sebastian at urbantalk.se
Mon Mar 22 07:16:56 EDT 2010


I need the stacktrace and other info on the exception, but the context  
of an exception view has hardly anything to go on. Any hints?

from zope.interface.common.interfaces import IException
class ExceptionView(grok.View):
     grok.context(IException)
     grok.name("index.html")
     grok.require('zope.Public')

     def render(self):
	return "Stack trace..."

Mvh Sebastian






More information about the Grok-dev mailing list