Ignore:
Timestamp:
24 Feb 2007, 21:41:16 (18 years ago)
Author:
joachim
Message:

set current_level for new students

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1417 r1487  
    1313$Id$
    1414"""
     15try:
     16    from Products.zdb import set_trace
     17except:
     18    def set_trace():
     19        pass
    1520import DateTime
    1621current = DateTime.DateTime()
     
    9499            da['app_ac_date'] = current
    95100            app_doc.edit(mapping = da)
     101        if s_review_state in ("student_created","admitted") and\
     102                             a_review_state == 'opened' :
     103            study_course = getattr(student,'study_course',None)
     104            wftool.doActionFor(study_course,'open')
     105            #set_trace()
     106            if study_course is not None:
     107                dsc = {}
     108                level = '100'
     109                jamb_reg_no = app_doc.jamb_reg_no
     110                if jamb_reg_no[1] == '1':
     111                    level = '200'
     112                dsc['current_level'] = level
     113                dsc['current_verdict'] = 'N/A'
     114                study_course.getContent().edit(mapping=dsc)
     115
    96116        elif s_review_state in ("admitted") and a_review_state == 'opened' and\
    97117                                            not app_doc.app_ac_pin:
Note: See TracChangeset for help on using the changeset viewer.