Move notfound()
method to core View
class
This commit is contained in:
parent
5494266698
commit
0d830d595c
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue