Ignore:
Timestamp:
26 Jan 2007, 21:43:07 (18 years ago)
Author:
Henrik Bettermann
Message:

allow clearance without picture

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

Legend:

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

    r1286 r1364  
    1212return the Prefix for Schoolfee
    1313"""
     14
     15if context.portal_membership.isAnonymousUser():
     16    return None
     17
     18import logging   
     19logger = logging.getLogger('EPayment.getSchoolFeePrefix')   
     20
    1421student_id = context.getStudentId()
    1522sbrain = context.students_catalog(id=student_id)[0]
  • WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py

    r1148 r1364  
    4646                                 )
    4747error = False
    48 if session.get("clicked",None):
    49     psm = 'Please wait a moment until "Clearance started" turns green, then click on the green link!'
    50     error = True
    51     logger.info('"%s","repeatedly pressed the clearance button"' % (info['id']))
    52 elif app_doc.passport is None:
    53     psm = "You must upload your passport picture before you can start the registration process!"
    54     error = True
    55     logger.info('"%s", "tried to start clerance without passport picture"' % (info['id']))
    56 elif review_state == "clearance_pin_entered":
     48
     49##if session.get("clicked",None):
     50##    psm = 'Please wait a moment until "Clearance started" turns green, then click on the green link!'
     51##    error = True
     52##    logger.info('"%s","repeatedly pressed the clearance button"' % (info['id']))
     53
     54if review_state == "clearance_pin_entered":
    5755    psm = "You have already entered a clearance pin!"
    5856    error = True
     
    6260    error = True
    6361    logger.info('"%s","entered wrong clearance pin"' % (info['id']))
     62elif app_doc.passport is None:
     63    #psm = "You must upload your passport picture before you can start the registration process!"
     64    #error = True
     65    logger.info('"%s", "started clearance without passport picture"' % (info['id']))
    6466if error:
    6567    return context.clearance_pin_form(rendered = res,
     
    9092
    9193return redirect("%s/clearance_edit_form" % info['clear'].absolute_url())
     94
Note: See TracChangeset for help on using the changeset viewer.