From 58d61accadcdcde537b16a73b048fc9a922be221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Wed, 13 Jul 2016 17:44:36 +0300 Subject: [PATCH] sample plugin fixed --- opt/ahenk/plugins/sample/init.py | 4 ++-- opt/ahenk/plugins/sample/login.py | 4 ++-- opt/ahenk/plugins/sample/logout.py | 4 ++-- opt/ahenk/plugins/sample/shutdown.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/opt/ahenk/plugins/sample/init.py b/opt/ahenk/plugins/sample/init.py index f8162b3..a16c8bc 100644 --- a/opt/ahenk/plugins/sample/init.py +++ b/opt/ahenk/plugins/sample/init.py @@ -10,11 +10,11 @@ class Init(AbstractPlugin): self.context = context self.logger = self.get_logger() - def handle_mode(self): + def handle_init_mode(self): # TODO Do what do you want to do! pass def handle_mode(context): init = Init(context) - init.handle_mode() + init.handle_init_mode() diff --git a/opt/ahenk/plugins/sample/login.py b/opt/ahenk/plugins/sample/login.py index 5e8119c..412178e 100644 --- a/opt/ahenk/plugins/sample/login.py +++ b/opt/ahenk/plugins/sample/login.py @@ -11,11 +11,11 @@ class Login(AbstractPlugin): self.username = str(context.get_username()) self.logger = self.get_logger() - def handle_mode(self): + def handle_login_mode(self): # TODO Do what do you want to do! pass def handle_mode(context): login = Login(context) - login.handle_mode() + login.handle_login_mode() diff --git a/opt/ahenk/plugins/sample/logout.py b/opt/ahenk/plugins/sample/logout.py index 6c17985..a2437d0 100644 --- a/opt/ahenk/plugins/sample/logout.py +++ b/opt/ahenk/plugins/sample/logout.py @@ -11,11 +11,11 @@ class Logout(AbstractPlugin): self.username = str(context.get_username()) self.logger = self.get_logger() - def handle_mode(self): + def handle_logout_mode(self): # TODO Do what do you want to do! pass def handle_mode(context): logout = Logout(context) - logout.handle_mode() + logout.handle_logout_mode() diff --git a/opt/ahenk/plugins/sample/shutdown.py b/opt/ahenk/plugins/sample/shutdown.py index cda1972..a51766b 100644 --- a/opt/ahenk/plugins/sample/shutdown.py +++ b/opt/ahenk/plugins/sample/shutdown.py @@ -10,11 +10,11 @@ class Shutdown(AbstractPlugin): self.context = context self.logger = self.get_logger() - def handle_mode(self): + def handle_shutdown_mode(self): # TODO Do what do you want to do! pass def handle_mode(context): shutdown = Shutdown(context) - shutdown.handle_mode() + shutdown.handle_shutdown_mode()