Ignore:
Timestamp:
11 Apr 2007, 20:01:53 (17 years ago)
Author:
Henrik Bettermann
Message:

quite a few bugs fixed

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"
    22##bind container=container
    33##bind context=context
     
    6767       
    6868        verdict =  sbrain.verdict       
    69         if verdict in ('A','B',)
     69        if verdict in ('A','B','',):
    7070            continue
    7171       
     
    8080        if sres:
    8181            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:
    8688            code = 'nok'
    8789            wrong_count += 1
     
    9193            if level is not None:
    9294                cr_count += 1
    93                 if dict['review_state'] == "school_fee_paid":
     95                if dict['review_state'] in ('courses_registered', 'courses_validated'):
    9496                    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
    96101                    ##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,)
    101103        else:
    102104            ok_count += 1
     
    111113        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)
    112114
    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 )
     115rwrite("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.