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