Changeset 3532

Show
Ignore:
Timestamp:
04/17/10 23:18:11 (12 years ago)
Author:
jerome
Message:

Backported changes from [3531] to LDAP. Fixes #56 for good. References #60.

Files:
1 modified

Legend:

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

    r3521 r3532  
    12091209                   "pykotaCopies" : str(copies), 
    12101210                   "pykotaOptions" : ((options is None) and "None") or unicodeToDatabase(options), 
    1211                    "pykotaHostName" : str(clienthost), 
     1211                   "pykotaHostName" : unicodeToDatabase(clienthost), 
    12121212                   "pykotaJobSizeBytes" : str(jobsizebytes), 
    12131213                   "pykotaMD5Sum" : unicodeToDatabase(jobmd5sum), 
     
    13091309            where.append("(pykotaPrinterName=%s)" % unicodeToDatabase(printer.Name)) 
    13101310        if hostname is not None : 
    1311             where.append("(pykotaHostName=%s)" % hostname) 
     1311            where.append("(pykotaHostName=%s)" % unicodeToDatabase(hostname)) 
    13121312        if billingcode is not None : 
    13131313            where.append("(pykotaBillingCode=%s)" % unicodeToDatabase(billingcode))