Changeset 1133 for pykota/trunk/pykota/storages/pgstorage.py
- Timestamp:
- 10/03/03 14:27:03 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r1131 r1133 21 21 # 22 22 # $Log$ 23 # Revision 1.15 2003/10/03 12:27:03 jalet 24 # Several optimizations, especially with LDAP backend 25 # 23 26 # Revision 1.14 2003/10/03 08:57:55 jalet 24 27 # Caching mechanism now caches all that's cacheable. … … 302 305 if result : 303 306 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")) 306 309 user.ident = record.get("uid") 307 310 user.LimitBy = record.get("limitby") … … 329 332 if result : 330 333 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")) 333 336 grouppquota = self.getGroupPQuota(group, printer) 334 337 groupsandquotas.append((group, grouppquota))