Ignore:
Timestamp:
31 Oct 2012, 16:01:42 (12 years ago)
Author:
Henrik Bettermann
Message:

Add clearance_comment attribute. When CO rejects clearance she is requested to enter a comment. This comment is stored with the student object and logged. The contact form is pre-filled with the comment. When a student is cleared the comment will be automatically removed.

File:
1 edited

Legend:

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

    r9295 r9484  
    256256            level_object.validated_by = usertitle
    257257            level_object.validation_date = datetime.utcnow()
     258    elif event.transition.transition_id == 'clear':
     259        obj.clearance_comment = None
    258260    elif event.transition.transition_id == 'reset8':
    259261        current_level = obj['studycourse'].current_level
Note: See TracChangeset for help on using the changeset viewer.