def debugError(self, entry): self.setStatus(404) exc = NotFound(entry) exc.title = 'Debugging Notice' exc.detail = ("Zope has encountered a problem publishing your object. " "<p>%s</p>" % repr(entry)) raise exc
def notFoundError(self, entry='Unknown'): self.setStatus(404) exc = NotFound(entry) exc.title = 'Resource not found' exc.detail = ('Sorry, the requested resource does not exist.' '<p>Check the URL and try again.</p>' '<p><b>Resource:</b> %s</p>' % escape(entry, True)) raise exc
def debugError(self, entry): self.setStatus(404) exc = NotFound(entry) exc.title = 'Debugging Notice' exc.detail = ( 'Zope has encountered a problem publishing your object.<p>' '\n%s</p>' % entry) raise exc
def notFoundError(self, entry='Unknown'): self.setStatus(404) exc = NotFound(entry) exc.title = 'Resource not found' exc.detail = ( 'Sorry, the requested resource does not exist.' '<p>Check the URL and try again.</p>' '<p><b>Resource:</b> %s</p>' % escape(entry, True)) raise exc