Changeset 1683 for WAeUP_SRP/trunk/skins
- Timestamp:
- 11 Apr 2007, 20:01:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/ti_188_resolve.py
r1682 r1683 1 ## Script (Python) " search_pins"1 ## Script (Python) "ti_188_resolve" 2 2 ##bind container=container 3 3 ##bind context=context … … 67 67 68 68 verdict = sbrain.verdict 69 if verdict in ('A','B', )69 if verdict in ('A','B','',): 70 70 continue 71 71 … … 80 80 if sres: 81 81 dict['review_state'] = sres[0].review_state 82 if sbrain.level == '': 83 code = 'nyl' 84 nyl_count += 1 85 elif sbrain.level != lc: 82 83 #if sbrain.level == '': 84 # code = 'nyl' 85 # nyl_count += 1 86 87 if sbrain.level != lc: 86 88 code = 'nok' 87 89 wrong_count += 1 … … 91 93 if level is not None: 92 94 cr_count += 1 93 if dict['review_state'] == "school_fee_paid":95 if dict['review_state'] in ('courses_registered', 'courses_validated'): 94 96 code = 'nok_cr' 95 comment = "%(level)s deleted" % dict 97 reg_count += 1 98 else: 99 comment = "level %(level)s deleted" % dict 100 comment = comment + ", level in students_catalog modified to %s" % lc 96 101 ##study_course.manage_delObjects((sbrain.level,)) 97 elif dict['review_state'] != "school_fee_paid": 98 reg_count += 1 99 comment = comment + " level in students_catalog modified to %s" % lc 100 ##context.students_catalog.modifyRecord(id = sbrain.id,level=lc,) 102 ##context.students_catalog.modifyRecord(id = sbrain.id,level=lc,) 101 103 else: 102 104 ok_count += 1 … … 111 113 rwrite('"%(count)d:%(ok_count)d:%(nyl_count)d:%(wrong_count)d:%(cr_count)d:%(reg_count)d","%(code)s","%(id)s","%(name)s","%(level)s","%(level_res)s","%(review_state)s","%(comment)s"' % dict) 112 114 113 rwrite("total: %(count)d<br> correct: %(ok_count)d<br> level == '': %(nyl_count)d<br> wrong: %(wrong_count)d<br> level created: %(cr_count)d<br> courses registered: %(reg_count)d" % dict ) 115 rwrite("total: %(count)d<br> correct: %(ok_count)d<br> wrong: %(wrong_count)d<br> level created: %(cr_count)d<br> courses registered: %(reg_count)d" % dict ) 116 117
Note: See TracChangeset for help on using the changeset viewer.