Changeset 3485


Ignore:
Timestamp:
3 May 2008, 06:08:35 (17 years ago)
Author:
Henrik Bettermann
Message:

fix course_results import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3481 r3485  
    455455                    level = getattr(context,"%(level_id)s" % vars())
    456456                    self.portal_workflow.doActionFor(level,'open')
    457                     level.getContent().edit(mapping={'session': "%(session_id)s" % mapping,})
     457                    session_id = mapping.get('session_id','')
     458                    if session_id:
     459                        level.getContent().edit(mapping={'session': "%s" % session_id,})
    458460                    self.portal_workflow.doActionFor(level,'close')
    459461                    self._v_level_created += level_ident,
Note: See TracChangeset for help on using the changeset viewer.