예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
 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