Changeset 2161 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
24 Aug 2007, 14:23:50 (17 years ago)
Author:
Henrik Bettermann
Message:

resubmit and reset status added

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

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

    r2160 r2161  
    6262        if not object['passport']:
    6363                object['passport'] = ''
    64         if object['status'] == "submitted":
     64        if 'submitted' in object['status']:
    6565            submitted = True
    6666        if not create and (pin != object['pin'] and not context.isSectionOfficer()):
     
    133133        psm = "You successfully applied for PUME!"
    134134        data['application_date'] = current
    135         data['status'] = "submitted"
     135        if object['status'] == 'edited':
     136            data['status'] = "submitted"
     137            logger.info('%s/%s modified and submitted application record' % (member,reg_no))
     138        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']   
    136142        context.applicants_catalog.modifyRecord(**data)
    137         logger.info('%s/%s modified and submitted application record' % (member,reg_no))
     143       
    138144        res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
    139145                                schema_id= 'application',
     
    182188        logger.info('%s/%s modified application record' % (member,reg_no))
    183189
    184 elif manage:       
     190elif manage:
    185191    if submitted:
    186192        mode = "view"
     
    201207
    202208
    203 try:   
     209try:
    204210    passport_uploaded = bool(data['passport'])
    205211except:
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage.py

    r2160 r2161  
    5454    data['reg_no'] = reg_no
    5555    psm = "You successfully reset the record! The applicant will be able to edit and resubmit the data."
    56     data['status'] = "edited"
     56    data['status'] = "reset"
    5757    context.applicants_catalog.modifyRecord(**data)
    5858    logger.info('%s reset application record of %s' % (member,reg_no))
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage_form.pt

    r2160 r2161  
    5151                   name="reset"
    5252                   value="Reset"
    53                    tal:condition="python: ds['status'] == 'submitted'"
     53                   tal:condition="python: 'submitted' in ds['status']"
    5454                   />
    5555            <br /><br />
Note: See TracChangeset for help on using the changeset viewer.