Ignore:
Timestamp:
25 Jan 2012, 17:47:23 (13 years ago)
Author:
Henrik Bettermann
Message:

Enable import of student registration states which are in IMPORTABLE_STATES.

Set workflow state directly rather than firing transitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/student.py

    r7364 r7513  
    156156    role_manager.assignRoleToPrincipal(
    157157        'waeup.local.StudentRecordOwner', student.student_id)
    158     IWorkflowInfo(student).fireTransition('create')
     158    if IWorkflowState(student).getState() is None:
     159        IWorkflowInfo(student).fireTransition('create')
    159160    return
    160161
Note: See TracChangeset for help on using the changeset viewer.