From 5c6bf7d2abee96e6baf6c2e851db503925fcc72a Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 6 Feb 2018 11:47:19 +0000 Subject: Template rendering --- pysite/route_manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pysite/route_manager.py') diff --git a/pysite/route_manager.py b/pysite/route_manager.py index 501076b7..f922be6a 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -5,7 +5,7 @@ import os from flask import Flask -from pysite.base_route import BaseView, ErrorView +from pysite.base_route import BaseView, ErrorView, RouteView __author__ = "Gareth Coles" @@ -35,7 +35,8 @@ class RouteManager: inspect.isclass(cls) and cls is not BaseView and cls is not ErrorView and - (BaseView in cls.__mro__ or ErrorView in cls.__mro__) + cls is not RouteView and + BaseView in cls.__mro__ ): cls.setup(self.app) print(f"View loaded: {cls.name: <25} ({module.__name__}.{cls_name})") -- cgit v1.2.3