Show
Ignore:
Timestamp:
10/03/03 14:27:03 (21 years ago)
Author:
jalet
Message:

Several optimizations, especially with LDAP backend

Files:
1 modified

Legend:

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

    r1131 r1133  
    2121# 
    2222# $Log$ 
     23# Revision 1.15  2003/10/03 12:27:03  jalet 
     24# Several optimizations, especially with LDAP backend 
     25# 
    2326# Revision 1.14  2003/10/03 08:57:55  jalet 
    2427# Caching mechanism now caches all that's cacheable. 
     
    302305        if result : 
    303306            for record in result : 
    304                 user = StorageUser(self, record.get("username")) 
    305                 if (names is None) or self.tool.matchString(user.Name, names) : 
     307                if (names is None) or self.tool.matchString(record.get("username"), names) : 
     308                    user = StorageUser(self, record.get("username")) 
    306309                    user.ident = record.get("uid") 
    307310                    user.LimitBy = record.get("limitby") 
     
    329332        if result : 
    330333            for record in result : 
    331                 group = self.getGroup(record.get("groupname")) 
    332                 if (names is None) or self.tool.matchString(group.Name, names) : 
     334                if (names is None) or self.tool.matchString(record.get("groupname"), names) : 
     335                    group = self.getGroup(record.get("groupname")) 
    333336                    grouppquota = self.getGroupPQuota(group, printer) 
    334337                    groupsandquotas.append((group, grouppquota))