Learn more about these different git repos.
Other Git URLs
from page.page import Page
from template.common import CommonTemplate
class ErrorPage(Page):
def __init__(self, code, message):
super().__init__()
self.code = str(int(code))
self.message = str(message)
def process(self, request, path, prevpath):
answer = request.answer
answer.status = self.code + ' ' + self.message
answer.template = self.commontemplate
answer.content += '' + str(self.code) + ''
' + str(self.code) + '
answer.content += '' + answer.te(self.message) + ''
' + answer.te(self.message) + '
return answer.complete_content()