Changeset 1530
- Timestamp:
- 06/08/04 11:00:04 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1520 r1530 24 24 # 25 25 # $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 # 26 30 # Revision 1.60 2004/06/03 23:14:08 jalet 27 31 # Now stores the job's size in bytes in the database. … … 313 317 # TODO : read backward so we could take first value seen 314 318 # 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() 316 320 matchingline = None 317 321 while 1 : … … 321 325 else : 322 326 line = line.strip() 323 if line. startswith(prefix) :327 if line.lower().startswith(prefix) : 324 328 matchingline = line # no break, because we read forward 325 329 pagelog.close()