Changeset 1530

Show
Ignore:
Timestamp:
06/08/04 11:00:04 (20 years ago)
Author:
jalet
Message:

Fixed problem when username was passed in uppercase from Samba and we
tried to find correct line in CUPS page_log to extract the hostname.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1520 r1530  
    2424# 
    2525# $Log$ 
     26# Revision 1.61  2004/06/08 09:00:04  jalet 
     27# Fixed problem when username was passed in uppercase from Samba and we 
     28# tried to find correct line in CUPS page_log to extract the hostname. 
     29# 
    2630# Revision 1.60  2004/06/03 23:14:08  jalet 
    2731# Now stores the job's size in bytes in the database. 
     
    313317            # TODO : read backward so we could take first value seen 
    314318            # TODO : here we read forward so we must take the last value seen 
    315             prefix = "%s %s %s" % (printername, username, jobid) 
     319            prefix = ("%s %s %s" % (printername, username, jobid)).lower() 
    316320            matchingline = None 
    317321            while 1 : 
     
    321325                else : 
    322326                    line = line.strip() 
    323                     if line.startswith(prefix) :     
     327                    if line.lower().startswith(prefix) :     
    324328                        matchingline = line # no break, because we read forward 
    325329            pagelog.close()