Changeset 1136

Show
Ignore:
Timestamp:
10/03/03 20:01:49 (21 years ago)
Author:
jalet
Message:

Nothing interesting...

Files:
1 modified

Legend:

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

    r1133 r1136  
    2121# 
    2222# $Log$ 
     23# Revision 1.16  2003/10/03 18:01:49  jalet 
     24# Nothing interesting... 
     25# 
    2326# Revision 1.15  2003/10/03 12:27:03  jalet 
    2427# Several optimizations, especially with LDAP backend 
     
    299302        return printers         
    300303         
    301     def getPrinterUsersAndQuotas(self, printer, names=None) :         
     304    def getPrinterUsersAndQuotas(self, printer, names=["*"]) :         
    302305        """Returns the list of users who uses a given printer, along with their quotas.""" 
    303306        usersandquotas = [] 
     
    305308        if result : 
    306309            for record in result : 
    307                 if (names is None) or self.tool.matchString(record.get("username"), names) : 
     310                if self.tool.matchString(record.get("username"), names) : 
    308311                    user = StorageUser(self, record.get("username")) 
    309312                    user.ident = record.get("uid") 
     
    326329        return usersandquotas 
    327330                 
    328     def getPrinterGroupsAndQuotas(self, printer, names=None) :         
     331    def getPrinterGroupsAndQuotas(self, printer, names=["*"]) :         
    329332        """Returns the list of groups which uses a given printer, along with their quotas.""" 
    330333        groupsandquotas = [] 
     
    332335        if result : 
    333336            for record in result : 
    334                 if (names is None) or self.tool.matchString(record.get("groupname"), names) : 
     337                if self.tool.matchString(record.get("groupname"), names) : 
    335338                    group = self.getGroup(record.get("groupname")) 
    336339                    grouppquota = self.getGroupPQuota(group, printer)