From 998cf89f52938cbb11794c4b21158977452374e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Ba=C5=9Faran?= Date: Mon, 14 Aug 2017 15:32:09 +0300 Subject: [PATCH] added user ip to system for ltsp --- opt/ahenk/base/system/system.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opt/ahenk/base/system/system.py b/opt/ahenk/base/system/system.py index 0acdd21..bf15459 100644 --- a/opt/ahenk/base/system/system.py +++ b/opt/ahenk/base/system/system.py @@ -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