Changeset 732

Show
Ignore:
Timestamp:
02/07/03 01:08:52 (22 years ago)
Author:
jalet
Message:

Typos

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r731 r732  
    1717# 
    1818# $Log$ 
     19# Revision 1.3  2003/02/07 00:08:52  jalet 
     20# Typos 
     21# 
    1922# Revision 1.2  2003/02/06 23:58:05  jalet 
    2023# repykota should be ok 
     
    9194            if options["users"] : 
    9295                print "User            used    soft    hard  grace" 
    93                 print "-------------------------------------------" 
     96                print "-----------------------------------------------------------" 
    9497                for name in self.storage.getPrinterUsers(printer) : 
    9598                    quota = self.storage.getUserPQuota(name, printer) 
     
    97100            else : 
    98101                print "Group           used    soft    hard  grace" 
    99                 print "-------------------------------------------" 
     102                print "-----------------------------------------------------------" 
    100103                for name in self.storage.getPrinterGroups(printer) : 
    101104                    quota = self.storage.getGroupPQuota(name, printer)  
  • pykota/trunk/pykota/storages/sql.py

    r729 r732  
    1515# 
    1616# $Log$ 
     17# Revision 1.13  2003/02/07 00:08:52  jalet 
     18# Typos 
     19# 
    1720# Revision 1.12  2003/02/06 23:20:03  jalet 
    1821# warnpykota doesn't need any user/group name argument, mimicing the 
     
    7881        """Returns the list of usernames which uses a given printer.""" 
    7982        result = self.doQuery("SELECT DISTINCT username FROM users WHERE id IN (SELECT userid FROM userpquota WHERE printerid IN (SELECT printerid FROM printers WHERE printername=%s));" % self.doQuote(printername)) 
    80         result = result.doParseResult(result) 
     83        result = self.doParseResult(result) 
    8184        if result is None : 
    8285            return [] 
     
    8790        """Returns the list of groups which uses a given printer.""" 
    8891        result = self.doQuery("SELECT DISTINCT groupname FROM groups WHERE id IN (SELECT groupid FROM grouppquota WHERE printerid IN (SELECT printerid FROM printers WHERE printername=%s));" % self.doQuote(printername)) 
    89         result = result.doParseResult(result) 
     92        result = self.doParseResult(result) 
    9093        if result is None : 
    9194            return []