Ignore:
Timestamp:
3 May 2012, 20:53:09 (12 years ago)
Author:
Henrik Bettermann
Message:

Move initial workflow transition to handle_applicant_added. This way we can avoid misleading duplicate log entries.

Roll back changes in workflow.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/workflow.py

    r8334 r8335  
    170170    history.addMessage(msg)
    171171    # In some tests we don't have a an applicants root or a user
    172     if event.transition.transition_id != 'init':
    173         try:
    174             applicants_root = grok.getSite()['applicants']
    175             applicants_root.logger.info('%s - %s' % (obj.applicant_id,msg))
    176         except (TypeError, AttributeError):
    177             pass
     172    try:
     173        applicants_root = grok.getSite()['applicants']
     174        applicants_root.logger.info('%s - %s' % (obj.applicant_id,msg))
     175    except (TypeError, AttributeError):
     176        pass
    178177    return
Note: See TracChangeset for help on using the changeset viewer.