def notfound(self): """Returns HTTPError with '404 not found' message""" parent = self.get_parent_app() if parent: return parent.notfound() else: return web._NotFound()
def notfound(self): parent = self.get_parent_app() if parent: return parent.notfound() else: return web._NotFound()