mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-21 22:02:15 +03:00
added user ip to system for ltsp
This commit is contained in:
parent
102815467c
commit
998cf89f52
1 changed files with 6 additions and 0 deletions
|
@ -299,6 +299,12 @@ class System:
|
|||
desktop = system.db_service.select_one_result('session', 'desktop', " username='{0}'".format(username))
|
||||
return desktop
|
||||
|
||||
staticmethod
|
||||
def userip(username):
|
||||
system = System()
|
||||
userip = system.db_service.select_one_result('session', 'ip', " username='{0}'".format(username))
|
||||
return userip
|
||||
|
||||
@staticmethod
|
||||
def user_home_path(username):
|
||||
# TODO temp
|
||||
|
|
Loading…
Reference in a new issue