Changeset 1361
- Timestamp:
- 02/25/04 17:52:39 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r1358 r1361 22 22 # 23 23 # $Log$ 24 # Revision 1.56 2004/02/25 16:52:39 jalet 25 # Small fix wrt empty user groups 26 # 24 27 # Revision 1.55 2004/02/23 22:53:21 jalet 25 28 # Don't retrieve data when it's not needed, to avoid database queries … … 539 542 grouppquota.LifePageCounter = 0 540 543 usernamesfilter = "".join(["(pykotaUserName=%s)" % member.Name for member in self.getGroupMembers(group)]) 541 result = self.doSearch("(&(objectClass=pykotaUserPQuota)(pykotaPrinterName=%s)(|%s))" % (printer.Name, usernamesfilter), ["pykotaPageCounter", "pykotaLifePageCounter"], base=self.info["userquotabase"]) 544 if usernamesfilter : 545 usernamesfilter = "(|%s)" % usernamesfilter 546 result = self.doSearch("(&(objectClass=pykotaUserPQuota)(pykotaPrinterName=%s)%s)" % (printer.Name, usernamesfilter), ["pykotaPageCounter", "pykotaLifePageCounter"], base=self.info["userquotabase"]) 542 547 if result : 543 548 for userpquota in result :