Hello. I am trying to avoid default (below attached) default Unhandled ex. 
pagtes served by flup. Is there any easy way to override it / serve own page 
instead one of this:


    def error(self, req):$
        """$
        Called by Request if an exception occurs within the handler. May and$
        should be overridden.$
        """$
        if self.debug:$
            import cgitb$
            req.stdout.write('Content-Type: text/html\r\n\r\n' +$
                             cgitb.html(sys.exc_info()))$
        else:$
            errorpage = """<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">$
<html><head>$
<title>Unhandled Exception</title>$
</head><body>$
<h1>Unhandled Exception</h1>$
<p>An unhandled exception was thrown by the application.</p>$
</body></html>$
"""$
            req.stdout.write('Content-Type: text/html\r\n\r\n' +$
                             errorpage)$

-- 
Rafał bluszcz Zawadzki
http://my.jabberpl.org - use jabber
http://bluszcz.jogger.pl - my blog
http://glam.pl - buy secondhand clothes
http://dkf.glam.pl - domorosły krytyk filmowy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to