Changeset 2480


Ignore:
Timestamp:
30 Oct 2007, 15:23:25 (17 years ago)
Author:
joachim
Message:

check for existing app_doc, avoid accessviolation in getPaymentsFolderInfo (in custom)

Location:
WAeUP_SRP/base/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/cps_custom/logged_in.py

    r2468 r2480  
    6969
    7070        student_app = getattr(student,'application',None)
    71 
     71           
    7272        #########################################################
    7373
     
    9090        p_review_state = wftool.getInfoFor(student_per,'review_state',None)
    9191        logger.info('%s logged in, review_state %s' % (member,s_review_state))
    92         app_doc = student_app.getContent()
     92        if student_app is None:
     93            logger.info('%s logged in, without application object' % (member))
     94        else:
     95            app_doc = student_app.getContent()
    9396
    9497        #########################################################
     
    9699        # save email and phone of returning students after all objects have been created
    97100
    98         if request.has_key('returning'):
     101        if request.has_key('returning') and student_app:
    99102            email=request.get("email")
    100103            phone=request.get("phone_nr")
  • WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py

    r2466 r2480  
    5252info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx"
    5353review_state = info['review_state'] = s_brain.review_state
    54 parttime = s_brain.mode.endswith('_pt')
    55 fulltime = s_brain.mode.endswith('_ft')
     54parttime = s_brain.mode and s_brain.mode.endswith('_pt')
     55fulltime = s_brain.mode and s_brain.mode.endswith('_ft')
    5656
    5757#if review_state == 'cleared_and_validated' or (parttime and review_state == 'returning'):
Note: See TracChangeset for help on using the changeset viewer.