From 0d830d595c8ef2e291d084413615d4ceb441c9ff Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 21 Mar 2017 13:18:24 -0500 Subject: [PATCH] Move `notfound()` method to core `View` class --- tailbone/views/common.py | 3 --- tailbone/views/core.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tailbone/views/common.py b/tailbone/views/common.py index 23f366db..ae848910 100644 --- a/tailbone/views/common.py +++ b/tailbone/views/common.py @@ -56,9 +56,6 @@ class CommonView(View): project_title = "Tailbone" project_version = tailbone.__version__ - def notfound(self): - return httpexceptions.HTTPNotFound() - def home(self, mobile=False): """ Home page view. diff --git a/tailbone/views/core.py b/tailbone/views/core.py index 0b793702..40ff7de4 100644 --- a/tailbone/views/core.py +++ b/tailbone/views/core.py @@ -52,6 +52,9 @@ class View(object): """ return getattr(self.request, 'rattail_config', None) + def notfound(self): + return httpexceptions.HTTPNotFound() + def late_login_user(self): """ Returns the :class:`rattail:rattail.db.model.User` instance