Changeset 1141
- Timestamp:
- 10/06/03 16:42:36 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r1137 r1141 21 21 # 22 22 # $Log$ 23 # Revision 1.30 2003/10/06 14:42:36 jalet 24 # LDAP group access will be slower when cache is disabled, but at least code 25 # is consistent with the rest of the caching mechanis, but at least code 26 # is consistent with the rest of the caching mechanism 27 # 23 28 # Revision 1.29 2003/10/06 13:12:28 jalet 24 29 # More work on caching … … 348 353 grouppquota.PageCounter = 0 349 354 grouppquota.LifePageCounter = 0 350 usernamesfilter = "".join(["(pykotaUserName=%s)" % member.Name for member in group.Members])355 usernamesfilter = "".join(["(pykotaUserName=%s)" % member.Name for member in self.getGroupMembers(group)]) 351 356 result = self.doSearch("(&(objectClass=pykotaUserPQuota)(pykotaPrinterName=%s)(|%s))" % (printer.Name, usernamesfilter), ["pykotaPageCounter", "pykotaLifePageCounter"], base=self.info["userquotabase"]) 352 357 if result : … … 536 541 def addUserToGroup(self, user, group) : 537 542 """Adds an user to a group.""" 538 if user.Name not in [u.Name for u in group.Members] :543 if user.Name not in [u.Name for u in self.getGroupMembers(group)] : 539 544 result = self.doSearch("objectClass=pykotaGroup", None, base=group.ident, scope=ldap.SCOPE_BASE) 540 545 if result :