Changeset 1136
- Timestamp:
- 10/03/03 20:01:49 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r1133 r1136 21 21 # 22 22 # $Log$ 23 # Revision 1.16 2003/10/03 18:01:49 jalet 24 # Nothing interesting... 25 # 23 26 # Revision 1.15 2003/10/03 12:27:03 jalet 24 27 # Several optimizations, especially with LDAP backend … … 299 302 return printers 300 303 301 def getPrinterUsersAndQuotas(self, printer, names= None) :304 def getPrinterUsersAndQuotas(self, printer, names=["*"]) : 302 305 """Returns the list of users who uses a given printer, along with their quotas.""" 303 306 usersandquotas = [] … … 305 308 if result : 306 309 for record in result : 307 if (names is None) orself.tool.matchString(record.get("username"), names) :310 if self.tool.matchString(record.get("username"), names) : 308 311 user = StorageUser(self, record.get("username")) 309 312 user.ident = record.get("uid") … … 326 329 return usersandquotas 327 330 328 def getPrinterGroupsAndQuotas(self, printer, names= None) :331 def getPrinterGroupsAndQuotas(self, printer, names=["*"]) : 329 332 """Returns the list of groups which uses a given printer, along with their quotas.""" 330 333 groupsandquotas = [] … … 332 335 if result : 333 336 for record in result : 334 if (names is None) orself.tool.matchString(record.get("groupname"), names) :337 if self.tool.matchString(record.get("groupname"), names) : 335 338 group = self.getGroup(record.get("groupname")) 336 339 grouppquota = self.getGroupPQuota(group, printer)