diff options
author | 2018-02-06 11:47:19 +0000 | |
---|---|---|
committer | 2018-02-06 11:47:19 +0000 | |
commit | 5c6bf7d2abee96e6baf6c2e851db503925fcc72a (patch) | |
tree | f9230655306c69e7578a344c3b12b162c6c79ed9 /pysite/route_manager.py | |
parent | Revert "Mart's Missing Files 2: Electric Boogaloo" (diff) |
Template rendering
Diffstat (limited to 'pysite/route_manager.py')
-rw-r--r-- | pysite/route_manager.py | 5 |
1 files changed, 3 insertions, 2 deletions
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})") |