def debugerror():
 if _hasTemplating:
  out = str(djangoerror())
 else:
  out = ('<p>You\'ve set web.py to use the fancier debugerror error \nmessages, but these messages require you install the Cheetah template \nsystem. For more information, see \n<a href="http://webpy.org/">the web.py website</a>.</p>\n\n<p>In the meantime, here\'s a plain old error message:</p>\n\n<pre>%s</pre>\n\n<p>(If it says something about \'Compiler\', then it\'s probably\nbecause you\'re trying to use templates and you haven\'t\ninstalled Cheetah. See above.)</p>\n' % htmlquote(traceback.format_exc()))
 ctx.status = '500 Internal Server Error'
 ctx.headers = [('Content-Type', 'text/html')]
 ctx.output = out

def debugerror ( ) : if _hasTemplating : out = str ( djangoerror ( ) ) else : out = ( '<p>You\'ve set web.py to use the fancier debugerror error \nmessages, but these messages require you install the Cheetah template \nsystem. For more information, see \n<a href="http://webpy.org/">the web.py website</a>.</p>\n\n<p>In the meantime, here\'s a plain old error message:</p>\n\n<pre>%s</pre>\n\n<p>(If it says something about \'Compiler\', then it\'s probably\nbecause you\'re trying to use templates and you haven\'t\ninstalled Cheetah. See above.)</p>\n' % htmlquote ( traceback . format_exc ( ) ) ) ctx . status = '500 Internal Server Error' ctx . headers = [ ( 'Content-Type' , 'text/html' ) ] ctx . output = out
a replacement for internalerror that presents a nice page with lots of debug information for the programmer .