mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
new modes beans were added
This commit is contained in:
parent
0ab9557936
commit
d9c54a309a
4 changed files with 36 additions and 0 deletions
0
opt/ahenk/base/model/modes/__init__.py
Normal file
0
opt/ahenk/base/model/modes/__init__.py
Normal file
12
opt/ahenk/base/model/modes/login_mode.py
Normal file
12
opt/ahenk/base/model/modes/login_mode.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
|
class LoginMode(object):
|
||||||
|
def __init__(self, username):
|
||||||
|
self.username = username
|
||||||
|
|
||||||
|
@property
|
||||||
|
def obj_name(self):
|
||||||
|
return "LOGIN_MODE"
|
12
opt/ahenk/base/model/modes/logout_mode.py
Normal file
12
opt/ahenk/base/model/modes/logout_mode.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
|
class LogoutMode(object):
|
||||||
|
def __init__(self, username):
|
||||||
|
self.username = username
|
||||||
|
|
||||||
|
@property
|
||||||
|
def obj_name(self):
|
||||||
|
return "LOGOUT_MODE"
|
12
opt/ahenk/base/model/modes/shutdown_mode.py
Normal file
12
opt/ahenk/base/model/modes/shutdown_mode.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
|
class ShutdownMode(object):
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@property
|
||||||
|
def obj_name(self):
|
||||||
|
return "SHUTDOWN_MODE"
|
Loading…
Reference in a new issue