From bae33491b65d39853971af4d0de6c25a287188be Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 12 Dec 2016 16:03:42 -0600 Subject: [PATCH] Refactor mobile views a bit, per tailbone changes --- rattail_demo/web/templates/mobile/base.mako | 4 ---- rattail_demo/web/views/__init__.py | 18 ------------------ 2 files changed, 22 deletions(-) delete mode 100644 rattail_demo/web/templates/mobile/base.mako diff --git a/rattail_demo/web/templates/mobile/base.mako b/rattail_demo/web/templates/mobile/base.mako deleted file mode 100644 index 3341118..0000000 --- a/rattail_demo/web/templates/mobile/base.mako +++ /dev/null @@ -1,4 +0,0 @@ -## -*- coding: utf-8 -*- -<%inherit file="tailbone:templates/mobile/base_external_toolbars.mako" /> - -${parent.body()} diff --git a/rattail_demo/web/views/__init__.py b/rattail_demo/web/views/__init__.py index b18799b..5bd6d9a 100644 --- a/rattail_demo/web/views/__init__.py +++ b/rattail_demo/web/views/__init__.py @@ -5,27 +5,9 @@ Web views from __future__ import unicode_literals, absolute_import -from tailbone import views as base - - -def bogus_error(request): - """ - A special view which simply raises an error, for the sake of testing - uncaught exception handling. - """ - raise Exception("Congratulations, you have triggered a bogus error.") - def includeme(config): - # TODO: merge these views into core/common - config.add_route('home', '/') - config.add_view(base.home, route_name='home', renderer='/home.mako') - config.add_route('mobile.home', '/mobile/') - config.add_view(base.home, route_name='mobile.home', renderer='/mobile/home.mako') - config.add_route('bogus_error', '/bogus-error') - config.add_view(bogus_error, route_name='bogus_error', permission='admin') - # core views config.include('rattail_demo.web.views.common') config.include('rattail_demo.web.views.auth')