Changeset 3467


Ignore:
Timestamp:
23 Apr 2008, 16:01:25 (17 years ago)
Author:
Henrik Bettermann
Message:

reenable workflow transtion (in custom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/approve_epayment.py

    r3240 r3467  
    4747doc.edit(mapping=pd)
    4848
    49 #if doc.type_description.startswith('School Fee'):
    50 #    study_course = getattr(student,'study_course')
    51 #    try:
    52 #        wftool.doActionFor(study_course,'open')
    53 #    except:
    54 #        pass
    55 #    verdict = s_brain.verdict
    56 #    if verdict == 'N/A':
    57 #        verdict = ''
    58 #    study_course.getContent().edit(mapping= {'current_level': next_level_id,
    59 #                                             'current_session': next_session_id,
    60 #                                             'current_verdict': next_verdict,
    61 #                                             'previous_verdict': verdict,
    62 #                                             })
    63 #    if next_transition:
    64 #        wftool.doActionFor(student,next_transition)
     49if doc.category == 'schoolfee':
     50    study_course = getattr(student,'study_course')
     51    try:
     52        wftool.doActionFor(study_course,'open')
     53    except:
     54        pass
     55    verdict = s_brain.verdict
     56    if verdict == 'N/A':
     57        verdict = ''
     58    study_course.getContent().edit(mapping= {'current_level': next_level_id,
     59                                             'current_session': next_session_id,
     60                                             'current_verdict': next_verdict,
     61                                             'previous_verdict': verdict,
     62                                             })
     63    if next_transition:
     64        wftool.doActionFor(student,next_transition)
    6565
    6666logger.info('%s approves epayment for %s' % (member,student_id))
Note: See TracChangeset for help on using the changeset viewer.