Changeset 1302 for WAeUP_SRP


Ignore:
Timestamp:
15 Jan 2007, 12:19:17 (18 years ago)
Author:
Henrik Bettermann
Message:

last change was not working - fixed

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

Legend:

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

    r1292 r1302  
    33                tal:define="info_acco context/getAccommodationInfo;
    44                            info_app  context/getApplicationInfo">
    5       <span tal:condition="not: info_acco">
     5      <span tal:condition="python: not info_acco or not info_acco['acco']">
    66            <metal:block use-macro="here/error_not_found/macros/not_found" />
    77      </span>   
    8       <span tal:condition="info_acco">                    
     8      <span tal:condition="python: info_acco and info_acco['acco']">                   
    99          <h3>Hostel Allocation Slip (and Maintenance Receipt)</h3>
    1010          <br />
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_view.pt

    r1299 r1302  
    22    <metal:main fill-slot="main"
    33                tal:define="info context/getAccommodationInfo">
    4       <span tal:condition="not: info">
     4      <span tal:condition="python: not info or not info['acco']">
    55        <metal:block use-macro="here/error_not_found/macros/not_found" />
    66      </span>
    7       <span tal:condition="info">
     7      <span tal:condition="python: info and info['acco']">
    88        <div style="text-align: right">
    99        <a href="" target="slip" tal:attributes="href string:accommodation_slip"
  • WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py

    r1300 r1302  
    8484acco_id = 'accommodation_2006'
    8585acco = getattr(student,acco_id,None)
    86 if acco == None:
    87     logger.info('"%s","tried to access non-existing acco object"' % (member_id))
    88     return None
    89 
    9086info['acco'] = acco
    9187info['acco_id'] = acco_id
Note: See TracChangeset for help on using the changeset viewer.