From 255f895993ab0d5bbe5930492cda21b77e8b972a Mon Sep 17 00:00:00 2001 From: jar3b Date: Tue, 15 Mar 2016 12:53:13 +0300 Subject: [PATCH] Fix callable (3rd) --- aore/miscutils/bottlecl.py | 3 --- passenger_wsgi.py | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/aore/miscutils/bottlecl.py b/aore/miscutils/bottlecl.py index f424685..371338a 100644 --- a/aore/miscutils/bottlecl.py +++ b/aore/miscutils/bottlecl.py @@ -8,9 +8,6 @@ class BottleCL(object): self._app = Bottle() self.init_routes() - def __call__(self, environ, start_response): - self._app.__call__(environ, start_response) - def init_routes(self): pass diff --git a/passenger_wsgi.py b/passenger_wsgi.py index 48a287f..4d1ac54 100644 --- a/passenger_wsgi.py +++ b/passenger_wsgi.py @@ -9,7 +9,9 @@ except ImportError: assert "No config" # Define main app -application = phias.App("pyphias.log") +phias_app = phias.App("pyphias.log") +# Define wsgi app +application = phias_app._app # Run bottle WSGI server if no external if __name__ == '__main__':