sample plugin fixed

This commit is contained in:
Volkan Şahin 2016-07-13 17:44:36 +03:00
parent d9c54a309a
commit 58d61accad
4 changed files with 8 additions and 8 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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()