Ignore:
Timestamp:
26 Jan 2007, 09:00:48 (18 years ago)
Author:
Henrik Bettermann
Message:

enable hostel booking for school_fee_paid
session result view available only for students with results

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py

    r1320 r1359  
    3939    logger.info('"%s","not found in students_catalog"')
    4040    return None
    41    
     41
    4242ekehuan_certificates = ('BARTAPG',
    4343                        'BARTAPM',
     
    6666
    6767students_object = context.portal_url.getPortalObject().campus.students
    68 res = context.results_import(matric_no = s_brain.matric_no)
    6968student = getattr(students_object, student_id)
    7069info['id'] = student_id
     
    7271review_state = info['review_state'] = wf.getInfoFor(student,'review_state',None)
    7372booking_allowed = False
    74 if review_state in ('returning','school_fee_paid','courses_registered', 'courses_validated',):
     73if review_state in ('cleared_and_validated','returning','school_fee_paid','courses_registered', 'courses_validated',):
     74    booking_allowed = True
    7575    res = context.results_import(matric_no = s_brain.matric_no)
    7676    if res:
    7777        booking_allowed = res[0].Verdict in ("SUCCESSFUL STUDENT",
    7878                                             "STUDENT WITH CARRYOVER COURSES",)
    79 elif review_state in ('cleared_and_validated',):
    80     booking_allowed = True
    8179info['booking_allowed'] = booking_allowed
    8280if not booking_allowed:
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py

    r1320 r1359  
    5555if res:
    5656    info['review_state'] = res[0].review_state
     57res = context.results_import(matric_no = st_brain.matric_no)
     58if res:
     59    info['session'] = True
     60else:
     61    info['session'] = False
     62
    5763info['id'] = student_id
    5864items = []
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r1295 r1359  
    4141           
    4242          </tr>
    43           <tr tal:condition="python:info['review_state'] == 'returning'">
     43          <tr tal:condition="info/session">
    4444            <td>
    4545                <a href="edit" tal:attributes="href string:session_results_view">
     
    8585        </tr>
    8686      </span>
    87       <tr tal:condition="python:info['review_state'] == 'returning'">
     87      <tr tal:condition="info/session">
    8888        <td>
    8989            <a href="edit" tal:attributes="href string:session_results_view">
Note: See TracChangeset for help on using the changeset viewer.