Changeset 1750

Show
Ignore:
Timestamp:
09/28/04 11:11:56 (20 years ago)
Author:
jalet
Message:

Fix for accented chars in print job's title, filename, and options

Files:
1 modified

Legend:

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

    r1742 r1750  
    2222# 
    2323# $Log$ 
     24# Revision 1.76  2004/09/28 09:11:56  jalet 
     25# Fix for accented chars in print job's title, filename, and options 
     26# 
    2427# Revision 1.75  2004/09/24 20:21:50  jalet 
    2528# Fixed pykotaAccountBalance object location during creation 
     
    280283# 
    281284 
     285import os 
    282286import types 
    283287import time 
     
    10491053                   "pykotaPrinterPageCounter" : str(pagecounter), 
    10501054                   "pykotaAction" : action, 
    1051                    "pykotaFileName" : str(filename),  
    1052                    "pykotaTitle" : str(title),  
     1055                   "pykotaFileName" : ((filename is None) and "None") or filename.decode(os.environ.get("CHARSET", "ISO-8859-15")).encode("UTF-8"),  
     1056                   "pykotaTitle" : ((title is None) and "None") or title.decode(os.environ.get("CHARSET", "ISO-8859-15")).encode("UTF-8"),  
    10531057                   "pykotaCopies" : str(copies),  
    1054                    "pykotaOptions" : str(options),  
     1058                   "pykotaOptions" : ((options is None) and "None") or options.decode(os.environ.get("CHARSET", "ISO-8859-15")).encode("UTF-8"),  
    10551059                   "pykotaHostName" : str(clienthost),  
    10561060                   "pykotaJobSizeBytes" : str(jobsizebytes),