Changeset 2042 for pykota/trunk

Show
Ignore:
Timestamp:
01/24/05 18:44:17 (20 years ago)
Author:
jalet
Message:

Same fix for group print quota entries wrt LDAP performance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2041 r2042  
    2222# 
    2323# $Log$ 
     24# Revision 1.99  2005/01/24 17:44:17  jalet 
     25# Same fix for group print quota entries wrt LDAP performance 
     26# 
    2427# Revision 1.98  2005/01/24 17:35:24  jalet 
    2528# Performance improvement for user print quota entries search 
     
    15351538            gname = extractonly.get("groupname") 
    15361539            for entry in entries : 
    1537                 for (group, grouppquota) in self.getPrinterGroupsAndQuotas(entry) : 
    1538                     if (gname is None) or (group.Name == gname) : 
    1539                         result.append((group.Name, entry.Name, grouppquota.ident, group.ident, entry.ident, grouppquota.LifePageCounter, grouppquota.PageCounter, grouppquota.SoftLimit, grouppquota.HardLimit, grouppquota.DateLimit)) 
     1540                for (group, grouppquota) in self.getPrinterGroupsAndQuotas(entry, names=[gname or "*"]) : 
     1541                    result.append((group.Name, entry.Name, grouppquota.ident, group.ident, entry.ident, grouppquota.LifePageCounter, grouppquota.PageCounter, grouppquota.SoftLimit, grouppquota.HardLimit, grouppquota.DateLimit)) 
    15401542            return result 
    15411543