Changeset 1768 for pykota/trunk
- Timestamp:
- 10/04/04 13:27:57 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r1766 r1768 24 24 - 1.20alpha19 : 25 25 26 - Finished implementation of LDAP support in dumpykota. 27 26 28 - The md5 sum of the job's datas is now available as an 27 29 hexadecimal digest in the PYKOTAMD5SUM environment variable. -
pykota/trunk/pykota/storages/ldapstorage.py
r1765 r1768 22 22 # 23 23 # $Log$ 24 # Revision 1.81 2004/10/04 11:27:57 jalet 25 # Finished LDAP support for dumpykota. 26 # 24 27 # Revision 1.80 2004/10/03 19:57:57 jalet 25 28 # Dump of payments should work with LDAP backend now. … … 1337 1340 entries = [p for p in [self.getPrinter(name) for name in self.getAllPrintersNames()] if p.Exists] 1338 1341 if entries : 1342 result = [ ("pykotaUserName", "pykotaPrinterName", "dn", "userdn", "printerdn", "pykotaLifePageCounter", "pykotaPageCounter", "pykotaSoftLimit", "pykotaHardLimit", "pykotaDateLimit") ] 1339 1343 for entry in entries : 1340 userpquotas = [ upq for (u, upq) in self.getPrinterUsersAndQuotas(entry) ] 1341 pass 1344 for (user, userpquota) in self.getPrinterUsersAndQuotas(entry) : 1345 result.append((user.Name, entry.Name, userpquota.ident, user.ident, entry.ident, userpquota.LifePageCounter, userpquota.PageCounter, userpquota.SoftLimit, userpquota.HardLimit, userpquota.DateLimit)) 1346 return result 1342 1347 1343 1348 def extractGpquotas(self) : … … 1345 1350 entries = [p for p in [self.getPrinter(name) for name in self.getAllPrintersNames()] if p.Exists] 1346 1351 if entries : 1352 result = [ ("pykotaGroupName", "pykotaPrinterName", "dn", "groupdn", "printerdn", "pykotaLifePageCounter", "pykotaPageCounter", "pykotaSoftLimit", "pykotaHardLimit", "pykotaDateLimit") ] 1347 1353 for entry in entries : 1348 grouppquotas = [ gpq for (g, gpq) in self.getPrinterGroupsAndQuotas(entry) ] 1349 pass 1354 for (group, grouppquota) in self.getPrinterGroupsAndQuotas(entry) : 1355 result.append((group.Name, entry.Name, grouppquota.ident, group.ident, entry.ident, grouppquota.LifePageCounter, grouppquota.PageCounter, grouppquota.SoftLimit, grouppquota.HardLimit, grouppquota.DateLimit)) 1356 return result 1350 1357 1351 1358 def extractUmembers(self) :