예제 #1
0
  def publicErrorPage(self):
    html= '''<html>
  <head>
    <title>Error</title>
  </head>
  <body fgcolor=black bgcolor=white>
    %s
    <p> %s
''' % (htTitle('Error'), self.setting('UserErrorMessage'))
    debugInfo= self.generateDebugInfo()
    html += debugInfo[0]
    html += '</body></html>'
    return html
예제 #2
0
  def privateErrorPage(self):
    ''' Returns an HTML page intended for the developer with useful information such as the traceback. '''
    html = ['''
<html>
  <head>
    <title>Error</title>
  </head>
  <body fgcolor=black bgcolor=white>
%s
<p> %s''' % (htTitle('Error'), self.setting('UserErrorMessage'))]

    html.append(self.htmlDebugInfo())

    html.append('</body></html>')
    return string.join(html, '')
예제 #3
0
 def htmlWriteTitle(self, s):
   self.htmlWriteln(htTitle(s))