Ignore:
Timestamp:
18 Aug 2007, 17:23:25 (17 years ago)
Author:
Henrik Bettermann
Message:

add logging messages
change storage location of passport picture
and more

File:
1 edited

Legend:

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

    r2114 r2119  
    1919
    2020import DateTime
     21import logging
     22logger = logging.getLogger('Skins.apply_pume')
     23
    2124current = DateTime.DateTime()
    2225pr = context.portal_registration
     
    5558            submitted = True
    5659        if not create and pin != object['pin']:
     60            logger.info('%s entered wrong pin %s' % (reg_no,pin))
    5761            return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    5862if slip:
    5963    mode = "view_slip"
     64    logger.info('%s views application slip' % (reg_no))
     65   
    6066res,psm,ds = lt.renderLayout(layout_id= 'application',
    6167                             schema_id= 'application',
     
    101107        mode = "view"
    102108        psm = "The form has already been submitted and you are not allowed to resubmit the data!"
     109        logger.info('%s tried to resubmit application record' % (reg_no))
    103110        res,psm_dummy,ds_dummy = lt.renderLayout(layout_id= 'application',
    104111                                schema_id= 'application',
     
    112119        mode = "edit"
    113120        psm = "Please confirm Passport Photograph!"
     121        logger.info('%s tried to submit without ticking confirmation check box' % (reg_no))
    114122    else:
    115123        mode = "view"
     
    118126        data['status'] = "submitted"
    119127        context.applicants_catalog.modifyRecord(**data)
     128        logger.info('%s modified and submitted application record' % (reg_no))
    120129        res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
    121130                                schema_id= 'application',
     
    129138    if submitted:
    130139        mode = "view"
     140        logger.info('%s views application record' % (reg_no))
    131141    else:
    132142        mode = "edit"
     143        logger.info('%s edits application process' % (reg_no))
    133144    psm = ""
    134145    #set_trace()
     
    147158        mode = "view"
    148159        psm = "The form has already been submitted and you are not allowed to modify the data!"
     160        logger.info('%s tried to edit submitted application record' % (reg_no))
    149161        res,psm_dummy,ds_dummy = lt.renderLayout(layout_id= 'application',
    150162                                schema_id= 'application',
     
    160172        data['status'] = "edited"
    161173        context.applicants_catalog.modifyRecord(**data)
     174        logger.info('%s modified application record' % (reg_no))
    162175
    163176
Note: See TracChangeset for help on using the changeset viewer.