[nanny] Show win32 user with uid > 1000
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Show win32 user with uid > 1000
- Date: Sun, 23 Jan 2011 18:02:31 +0000 (UTC)
commit 60ad7ea8b16614b90d80edb7f7f2b706b89390b9
Author: Roberto Majadas <roberto majadas openshine com>
Date: Mon Sep 20 16:28:55 2010 +0200
Show win32 user with uid > 1000
daemon/src/Win32UsersManager.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/src/Win32UsersManager.py b/daemon/src/Win32UsersManager.py
index 45d483a..c8e1f97 100644
--- a/daemon/src/Win32UsersManager.py
+++ b/daemon/src/Win32UsersManager.py
@@ -43,7 +43,8 @@ class Win32UsersManager:
if qry.count > 0:
for result in qry:
uid = str(result.SID).split("-")[-1]
- users.append((uid, unicode(result.Name), unicode(result.FullName)))
+ if int(uid) >= 1000 :
+ users.append((uid, unicode(result.Name), unicode(result.FullName)))
self.last_time = time.time()
self.users = users
return users
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]