Ignore:
Timestamp:
24 Aug 2007, 20:43:30 (17 years ago)
Author:
Henrik Bettermann
Message:

store date of resubmission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py

    r2161 r2162  
    6262        if not object['passport']:
    6363                object['passport'] = ''
    64         if 'submitted' in object['status']:
     64        if object['status'] and 'submitted' in object['status']:
    6565            submitted = True
    6666        if not create and (pin != object['pin'] and not context.isSectionOfficer()):
     
    137137            logger.info('%s/%s modified and submitted application record' % (member,reg_no))
    138138        elif object['status'] == 'reset':
    139             data['status'] = 'resubmitted on %s' % DateTime.DateTime().strftime('%A, %B %d, %Y') 
    140             logger.info('%s/%s modified and resubmitted application record' % (member,reg_no)) 
    141         object['status'] = data['status']   
     139            data['status'] = 'resubmitted on %s' % DateTime.DateTime().strftime('%A, %B %d, %Y')
     140            logger.info('%s/%s modified and resubmitted application record' % (member,reg_no))
     141        object['status'] = data['status']
    142142        context.applicants_catalog.modifyRecord(**data)
    143        
     143
    144144        res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
    145145                                schema_id= 'application',
Note: See TracChangeset for help on using the changeset viewer.