Changeset 1204

Show
Ignore:
Timestamp:
11/24/03 10:54:06 (21 years ago)
Author:
jalet
Message:

Small fix for LDAP when pykotaOptions attribute wasn't present.

Files:
1 modified

Legend:

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

    r1203 r1204  
    2222# 
    2323# $Log$ 
     24# Revision 1.38  2003/11/24 09:54:06  jalet 
     25# Small fix for LDAP when pykotaOptions attribute wasn't present. 
     26# 
    2427# Revision 1.37  2003/11/23 19:01:37  jalet 
    2528# Job price added to history 
     
    420423                lastjob.JobPrice = float(fields.get("pykotaJobPrice", [0.0])[0]) 
    421424                lastjob.JobAction = fields.get("pykotaAction")[0] 
    422                 lastjob.JobFileName = fields.get("pykotaFileName")[0] 
    423                 lastjob.JobTitle = fields.get("pykotaTitle")[0] 
     425                lastjob.JobFileName = fields.get("pykotaFileName", [""])[0] 
     426                lastjob.JobTitle = fields.get("pykotaTitle", [""])[0] 
    424427                lastjob.JobCopies = int(fields.get("pykotaCopies", [0])[0]) 
    425                 lastjob.JobOptions = fields.get("pykotaOptions")[0] 
     428                lastjob.JobOptions = fields.get("pykotaOptions", [""])[0] 
    426429                date = fields.get("createTimestamp")[0] 
    427430                year = int(date[:4])