> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Marco Giusti > Sent: Friday, 19 February 2010 10:12 PM > To: Twisted general discussion > Subject: Re: [Twisted-Python] Nevow question
> > On Fri, Feb 19, 2010 at 03:17:07PM +1100, Sury Soni wrote: > > Hi, > > > > How do we disable traceback on Nevow production site? > > > > Right now, by default, any nevow site will print full length of > > traceback on web browser if there is some exception within the > > application. > [cut] > > something like this? > > http://divmod.org/trac/wiki/DivmodNevow/ErrorHandling Thank you Marco, this is exactly, what I was looking for. The example mentions ticket, http://divmod.org/trac/ticket/526 … … site = appserver.NevowSite(root) # You should be able to do this instead of in locateChild, but there seems to be a bug # http://divmod.org/trac/ticket/526 #site.remember(The404Page(), inevow.ICanHandleNotFound) #site.remember(The500Page(), inevow.ICanHandleException) … … There was a last post on above ticket 4 years ago. And this ticket is not closed. But seems to be working fine. I am using: twistd 8.2.0 nevow 0.9.33 python 2.6.3 Any potential bug should I be worried about, if I use site.remember stuff in production? Regards, Surya
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
