mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42: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))
|
desktop = system.db_service.select_one_result('session', 'desktop', " username='{0}'".format(username))
|
||||||
return desktop
|
return desktop
|
||||||
|
|
||||||
|
staticmethod
|
||||||
|
def userip(username):
|
||||||
|
system = System()
|
||||||
|
userip = system.db_service.select_one_result('session', 'ip', " username='{0}'".format(username))
|
||||||
|
return userip
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def user_home_path(username):
|
def user_home_path(username):
|
||||||
# TODO temp
|
# TODO temp
|
||||||
|
|
Loading…
Reference in a new issue