Ignore:
Timestamp:
27 Sep 2007, 07:22:58 (17 years ago)
Author:
joachim
Message:

fix for #252

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py

    r2132 r2279  
    122122        normal.append(d)
    123123info['credits_total'] = credits_total
    124 info['credits_exceeded'] = credits_total > 51
     124max_credits = 50
     125if context.getId() == student.end_level:
     126    max_credits = 51
     127info['max_credits'] = max_credits
     128info['credits_exceeded'] = credits_total > max_credits
    125129current_session = student.session
    126130info['submission_allowed']= not info['credits_exceeded'] and current_session == context.getSessionId()[-2:]
     
    130134info['normal'] = normal
    131135
    132 students_object = context.portal_url.getPortalObject().campus.students
    133 student = getattr(students_object, student_id)
    134 info['app'] = student.application
    135 info['app_doc'] = student.application.getContent()
     136# students_object = context.portal_url.getPortalObject().campus.students
     137# student = getattr(students_object, student_id)
     138# info['app'] = student.application
     139# info['app_doc'] = student.application.getContent()
    136140
    137141return info
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r2054 r2279  
    135135                     ('Do you really want to submit the course list? You will not be able to edit your data after submission.', )" />
    136136              <span tal:condition="info/credits_exceeded">
    137                   <font color="red"> <strong>Your total credits exceed 50!</strong></font>
     137                  <font color="red"> <strong>Your total credits exceed <span tal:replace="info/max_credits" />!</strong></font>
    138138              </span>
    139139                     
Note: See TracChangeset for help on using the changeset viewer.