[Twisted-Python] Nevow question
Sury Soni
ssoni at nextdigital.com
Sun Feb 21 17:59:28 EST 2010
> -----Original Message-----
> From: twisted-python-bounces at twistedmatrix.com [mailto:twisted-python-bounces at twistedmatrix.com] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100222/a01da3b8/attachment-0001.htm
More information about the Twisted-Python
mailing list