Changeset 1299 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
15 Jan 2007, 11:05:26 (18 years ago)
Author:
Henrik Bettermann
Message:

accommodation_view and slip only allowed if acco object exists

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_view.pt

    r1296 r1299  
    55        <metal:block use-macro="here/error_not_found/macros/not_found" />
    66      </span>
    7       <span tal:condition="info"
    8             tal:define="review_state info/review_state">
    9            
     7      <span tal:condition="info">
    108        <div style="text-align: right">
    119        <a href="" target="slip" tal:attributes="href string:accommodation_slip"
  • WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py

    r1256 r1299  
    3939    logger.info('"%s","not found in students_catalog"')
    4040    return None
    41 
     41   
    4242ekehuan_certificates = ('BARTAPG',
    4343                        'BARTAPM',
     
    8484acco_id = 'accommodation_2006'
    8585acco = getattr(student,acco_id,None)
     86
     87if acco == None:
     88    logger.info('"%s","tried to access non-existing acco object"')
     89    return None
     90
    8691info['acco'] = acco
    8792info['acco_id'] = acco_id
Note: See TracChangeset for help on using the changeset viewer.