mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-09 20:02:20 +03:00
sample plugin fixed
This commit is contained in:
parent
d9c54a309a
commit
58d61accad
4 changed files with 8 additions and 8 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue