|
|
|
@ -162,7 +162,7 @@ class VariableClDesktopOnlineData(ReadonlyTableVariable):
|
|
|
|
|
source = ['cl_desktop_online_user',
|
|
|
|
|
'cl_desktop_online_display']
|
|
|
|
|
|
|
|
|
|
reDisplay = re.compile(r"^\(?:(\d+.?\d*)")
|
|
|
|
|
reDisplay = re.compile(r"^\(?:(\d+\.?\d*)")
|
|
|
|
|
|
|
|
|
|
def _getDisplay(self,*args):
|
|
|
|
|
"""
|
|
|
|
@ -179,8 +179,8 @@ class VariableClDesktopOnlineData(ReadonlyTableVariable):
|
|
|
|
|
resWho = process("who")
|
|
|
|
|
xData = [[]]
|
|
|
|
|
if resWho.success():
|
|
|
|
|
listProcessing = lambda x: (x[0], x[1], x[4])\
|
|
|
|
|
if len(x)==5 else []
|
|
|
|
|
listProcessing = lambda x: (x[0], x[1], x[-1]) \
|
|
|
|
|
if len(x)>=5 else []
|
|
|
|
|
xData = map(lambda x:x[1].next(),
|
|
|
|
|
groupby(
|
|
|
|
|
sorted(
|
|
|
|
@ -190,7 +190,7 @@ class VariableClDesktopOnlineData(ReadonlyTableVariable):
|
|
|
|
|
(x[2].startswith("(:") or \
|
|
|
|
|
x[1].startswith(":")),
|
|
|
|
|
map(lambda x: listProcessing(\
|
|
|
|
|
filter(lambda y: y, x.split(" "))),
|
|
|
|
|
filter(lambda y: y, x.split())),
|
|
|
|
|
resWho)))),
|
|
|
|
|
key=lambda x:x[0]),
|
|
|
|
|
lambda x:x[0]))
|
|
|
|
|