diff options
author | 2018-02-09 12:52:28 +0000 | |
---|---|---|
committer | 2018-02-09 12:52:28 +0000 | |
commit | 2974f759b517f430cb1dfb1993924132536c2071 (patch) | |
tree | 8f8c0df5a6a0e4abe5bbd62c861c9aa028d13d75 | |
parent | Base API route and error codes enum (diff) |
Make APIView base class not loadable
-rw-r--r-- | pysite/route_manager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pysite/route_manager.py b/pysite/route_manager.py index 6ed597b1..ad2b3603 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -7,7 +7,7 @@ from flask import Blueprint, Flask, abort, g import rethinkdb -from pysite.base_route import BaseView, ErrorView, RouteView +from pysite.base_route import BaseView, ErrorView, RouteView, APIView DB_HOST = os.environ.get("RETHINKDB_HOST") DB_PORT = os.environ.get("RETHINKDB_PORT") @@ -60,6 +60,7 @@ class RouteManager: cls is not BaseView and cls is not ErrorView and cls is not RouteView and + cls is not APIView and BaseView in cls.__mro__ ): cls.setup(blueprint) |