Move notfound() method to core View class

This commit is contained in:
Lance Edgar 2017-03-21 13:18:24 -05:00
parent 5494266698
commit 0d830d595c
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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