Ahenk/opt/ahenk/plugins/sample/logout.py

22 lines
505 B
Python
Raw Normal View History

2016-07-13 17:40:30 +03:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from base.plugin.abstract_plugin import AbstractPlugin
class Logout(AbstractPlugin):
def __init__(self, context):
super(Logout, self).__init__()
self.context = context
self.username = str(context.get_username())
self.logger = self.get_logger()
2016-07-13 17:44:36 +03:00
def handle_logout_mode(self):
2016-07-13 17:40:30 +03:00
# TODO Do what do you want to do!
pass
def handle_mode(context):
logout = Logout(context)
2016-07-13 17:44:36 +03:00
logout.handle_logout_mode()