Changeset 1162 for WAeUP_SRP


Ignore:
Timestamp:
31 Dec 2006, 09:39:14 (18 years ago)
Author:
Henrik Bettermann
Message:

bugs fixed after testing (please check!)

Location:
WAeUP_SRP/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1151 r1162  
    139139        #import pdb;pdb.set_trace()
    140140        if len(records) == 0:
    141             return -1,"No bed of this type available"
     141            return -1,"No bed of this type available!"
    142142        rec = records[0]
    143143        self.modifyRecord(bed=rec.bed,student=student_id)
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_document_view.pt

    r1161 r1162  
    11<metal:html tal:define="info context/getDocumentInfo;
    2                         s_id context/getStudentId;
    3                         s_name context/getStudentName
     2                        s_name context/getStudentName;
    43                        is_so context/isSectionOfficer;"
    54            >
     
    1211      </a>
    1312      <h3>
    14          <span tal:condition="python:is_so and s_id">
     13         <span tal:condition="python:is_so and s_name">
    1514           <span tal:content="s_name" />:
    1615         </span>
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt

    r1161 r1162  
    1 <metal:html tal:define="info context/getAccommodationInfo">
    2   <span tal:condition="not: info">
    3     <span tal:content="here/illegal_view" />
    4   </span>
    5 <metal:block tal:condition="info">
     1<metal:html tal:define="info_acco context/getAccommodationInfo;
     2                        info_app  context/getApplicationInfo">
     3
     4<span tal:condition="not: info_acco">
     5  <span tal:content="here/illegal_view" />
     6</span>
     7<metal:block tal:condition="info_acco">
    68  <metal:body use-macro="here/main_template/macros/master">
    79    <metal:main fill-slot="main">
    8       <span tal:condition="not: info">
    9         <metal:block use-macro="here/error_not_found/macros/not_found" />
    10       </span>
    1110      <h3>Hostel Allocation Slip (and Maintenance Receipt)</h3>
    1211      <br />
    1312      <span tal:omit-tag=""
    14             tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
     13            tal:content="structure python: info_app['app_doc'].render(proxy=info_app['app_doc'],
    1514            layout_mode='view_info',
    1615            layout_id='student_application_fe')"
    1716            />
    1817      <span tal:omit-tag=""
    19             tal:content="structure python: info['acco_doc'].render(proxy=info['acco_doc'],
     18            tal:content="structure python: info_acco['acco_doc'].render(proxy=info_acco['acco_doc'],
    2019            layout_mode='view_slip',
    2120            layout_id='student_accommodation_fe')"
  • WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py

    r1161 r1162  
    5353info['clear_doc'] = student.clearance.getContent()
    5454info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None)
    55 if info['clear_review_state'] in ('clearance_requested', 'cleared_and_validated',):
     55if info['review_state'] in ('clearance_requested', 'cleared_and_validated',):
    5656    info['penalty'] = info['penalty'] and\
    5757                      info['clear_doc'].entry_date.greaterThan(DateTime('2006/12/30'))
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentName.py

    r1161 r1162  
    1919#from Products.zdb import set_trace
    2020#set_trace()
    21 if context.isStaff():
    22     return member.getProperty('fullname',None)
    2321if not context.isStudent():
    2422    return None
  • WAeUP_SRP/trunk/skins/waeup_student/layout_student_acco_view_slip.pt

    r805 r1162  
    77              fields python:('session',
    88                                 'bed',
    9                                  'student_status',
    109                                 'acco_res_sc_pin',
    1110                                 'acco_res_date',
Note: See TracChangeset for help on using the changeset viewer.