Ejemplo n.º 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
Ejemplo n.º 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, '')
Ejemplo n.º 3
0
 def htmlWriteTitle(self, s):
   self.htmlWriteln(htTitle(s))