From 64a9333d682a522ac8454485bff89503a5b7904e Mon Sep 17 00:00:00 2001 From: jar3b Date: Tue, 15 Mar 2016 12:45:35 +0300 Subject: [PATCH] Implement callable in BottleCL --- aore/miscutils/bottlecl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aore/miscutils/bottlecl.py b/aore/miscutils/bottlecl.py index 371338a..efde598 100644 --- a/aore/miscutils/bottlecl.py +++ b/aore/miscutils/bottlecl.py @@ -8,6 +8,9 @@ class BottleCL(object): self._app = Bottle() self.init_routes() + def __call__(self, **kwargs): + self._app(**kwargs) + def init_routes(self): pass