Show
Ignore:
Timestamp:
01/19/05 10:00:54 (19 years ago)
Author:
jalet
Message:

Small fix for Python2.1 and variables scopes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/dumper.py

    r2032 r2034  
    2121# 
    2222# $Log$ 
     23# Revision 1.3  2005/01/19 09:00:54  jalet 
     24# Small fix for Python2.1 and variables scopes 
     25# 
    2326# Revision 1.2  2005/01/19 08:49:41  jalet 
    2427# Now dumpykota.cgi behaves like printquota.cgi wrt the REMOTE_USER environment 
     
    152155        sortindex = fields["jobdate"]     
    153156        entries = entries[1:] 
    154         entries.sort(lambda m,n : cmp(m[sortindex], n[sortindex])) 
     157        entries.sort(lambda m,n,si=sortindex : cmp(m[si], n[si])) 
    155158        for entry in entries[1:] :     
    156159            printername = entry[fields["printername"]]