Fix callable (3rd)

This commit is contained in:
jar3b 2016-03-15 12:53:13 +03:00
parent 6425471dae
commit 255f895993
2 changed files with 3 additions and 4 deletions

View File

@ -8,9 +8,6 @@ class BottleCL(object):
self._app = Bottle() self._app = Bottle()
self.init_routes() self.init_routes()
def __call__(self, environ, start_response):
self._app.__call__(environ, start_response)
def init_routes(self): def init_routes(self):
pass pass

View File

@ -9,7 +9,9 @@ except ImportError:
assert "No config" assert "No config"
# Define main app # 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 # Run bottle WSGI server if no external
if __name__ == '__main__': if __name__ == '__main__':