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)

File:
1 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")
Note: See TracChangeset for help on using the changeset viewer.