Changeset 3327 for WAeUP_SRP/base


Ignore:
Timestamp:
13 Mar 2008, 09:07:48 (17 years ago)
Author:
Henrik Bettermann
Message:

resolve pickle traceback

Location:
WAeUP_SRP/base
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3326 r3327  
    441441            if msg:
    442442                break
     443            student_id = student_record.id   
    443444            level_id = mapping.get('level_id','')
    444445            code = mapping.get('code','')
  • WAeUP_SRP/base/WAeUPTool.py

    r3326 r3327  
    16391639                #mapping['import_date'] = DateTime.DateTime()
    16401640                mapping['import_date'] = import_date
    1641                 mapping['imported_by'] = member
     1641                mapping['imported_by'] = importer.imported_by
    16421642                mapping['import_message'] = msg
    16431643                upload_doc.edit(mapping = mapping)
  • WAeUP_SRP/base/skins/waeup_upload/import_uploads.py

    r3324 r3327  
    4343        context.portal_catalog.setBypassQueue(1)
    4444        context.waeup_tool.doCommit()
    45        
     45
    4646    msg = context.waeup_tool.importData(short_id,
    4747                                        doc.import_layout,
  • WAeUP_SRP/base/skins/waeup_upload/uploads_index.py

    r3325 r3327  
    8787        row['msg'] = import_message
    8888        if getattr(doc,'import_date',''):
    89             row['import_date'] = doc.import_date
     89            row['import_date'] = doc.import_date.strftime("%d/%m/%y %H:%M:%S")
    9090        else:
    9191            row['import_date'] = ''
    9292        add_to = imported
    93        
     93
    9494    else:
    9595        row['msg'],row['fields'] = doc['checkKeys']()
Note: See TracChangeset for help on using the changeset viewer.