Commit f17718be authored by Andreas Jung's avatar Andreas Jung

minor code cleanup and speedup in getUsers()

parent 6d1a19df
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.177 $'[11:-2] __version__='$Revision: 1.178 $'[11:-2]
import Globals, socket, SpecialUsers,re import Globals, socket, SpecialUsers,re
import os import os
...@@ -1020,11 +1020,7 @@ class UserFolder(BasicUserFolder): ...@@ -1020,11 +1020,7 @@ class UserFolder(BasicUserFolder):
data=self.data data=self.data
names=data.keys() names=data.keys()
names.sort() names.sort()
users=[] return [data[n] for n in names]
f=users.append
for n in names:
f(data[n])
return users
def getUser(self, name): def getUser(self, name):
"""Return the named user object or None""" """Return the named user object or None"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment