Changeset 2279 for WAeUP_SRP/base/skins
- Timestamp:
- 27 Sep 2007, 07:22:58 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py
r2132 r2279 122 122 normal.append(d) 123 123 info['credits_total'] = credits_total 124 info['credits_exceeded'] = credits_total > 51 124 max_credits = 50 125 if context.getId() == student.end_level: 126 max_credits = 51 127 info['max_credits'] = max_credits 128 info['credits_exceeded'] = credits_total > max_credits 125 129 current_session = student.session 126 130 info['submission_allowed']= not info['credits_exceeded'] and current_session == context.getSessionId()[-2:] … … 130 134 info['normal'] = normal 131 135 132 students_object = context.portal_url.getPortalObject().campus.students133 student = getattr(students_object, student_id)134 info['app'] = student.application135 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() 136 140 137 141 return info -
WAeUP_SRP/base/skins/waeup_student/study_level_view.pt
r2054 r2279 135 135 ('Do you really want to submit the course list? You will not be able to edit your data after submission.', )" /> 136 136 <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> 138 138 </span> 139 139
Note: See TracChangeset for help on using the changeset viewer.