Changeset 2761 for WAeUP_SRP/base
- Timestamp:
- 26 Nov 2007, 09:45:58 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2757 r2761 1319 1319 normal1 = [] 1320 1320 normal2 = [] 1321 normal3 = [] 1321 normal3 = [] 1322 1322 total_credits = 0 1323 1323 gpa = 0 1324 1324 for brain in course_results: 1325 1325 d = {} 1326 weight = '' 1327 grade = '' 1326 1327 for field in self.schema(): 1328 d[field] = getattr(brain,field,'') 1329 1330 d['weight'] = '' 1331 d['grade'] = '' 1332 d['score'] = '' 1333 1328 1334 if str(brain.credits).isdigit(): 1329 1335 credits = int(brain.credits) … … 1333 1339 1334 1340 grade,weight = self.getGradesFromScore(score) 1335 #weight = 41336 #grade = 'B'1337 1341 if weight: 1338 1342 gpa += weight * credits 1339 1340 1341 for field in self.schema(): 1342 d[field] = getattr(brain,field,'') 1343 1344 d['weight'] = weight 1345 d['grade'] = grade 1346 1343 d['weight'] = weight 1344 d['grade'] = grade 1345 d['score'] = score 1346 1347 1347 d['coe'] = '' 1348 1348 if brain.core_or_elective: … … 1359 1359 d['semester'] = str(course.semester) 1360 1360 if brain.carry_over: 1361 d['coe'] = 'C arry-Over'1361 d['coe'] = 'CO' 1362 1362 carry_overs.append(d) 1363 1363 else: -
WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py
r2758 r2761 1 z## Script (Python) "getPaymentsFolderInfo"1 ## Script (Python) "getPaymentsFolderInfo" 2 2 ##bind container=container 3 3 ##bind context=context -
WAeUP_SRP/base/skins/waeup_student/study_level_view.pt
r2760 r2761 77 77 <br /> 78 78 <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> 79 80 <tr> 81 <th tal:attributes="colspan python: test(show_check_boxes,'2','1')">Both Semesters</th> 82 <th align='center'></th> 83 <th align='center'>sm</th> 84 <th align='center'>cr</th> 85 <th align='center'>sc</th> 86 <th align='center'>gr</th> 87 <th align='center'>wt</th> 88 <th align='center'></th> 89 <th tal:condition="submission_allowed" align='center'></th> 90 91 </tr> 79 92 <tr tal:repeat="row info/carry_overs" 80 93 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> … … 128 141 <th align='center'>wt</th> 129 142 <th align='center'></th> 130 <th align='center'></th>143 <th tal:condition="submission_allowed" align='center'></th> 131 144 132 145 </tr> … … 206 219 <br /> 207 220 208 <table tal:condition="python: is_student and s ubmission_allowed and show_check_boxes" width="100%" cellspacing="0" cellpadding="2"221 <table tal:condition="python: is_student and show_check_boxes" width="100%" cellspacing="0" cellpadding="2" 209 222 class="folderButtons"> 210 223 <tr> … … 283 296 </tr> 284 297 </table> 285 <table tal:condition="python:is_ca and is_current_level " width="100%" cellspacing="0" cellpadding="2"298 <table tal:condition="python:is_ca and is_current_level and not has_verdict" width="100%" cellspacing="0" cellpadding="2" 286 299 class="folderButtons"> 287 300 <tr> 288 301 <td align="left" valign="top" rowspan="3"></td> 289 302 <td align="left" valign="top"> 290 <input tal:condition="s ubmission_allowed"303 <input tal:condition="show_check_boxes" 291 304 type="button" value="Select all" class="context" 292 305 onclick="someJavaScriptFunctionThatWillBeReplaced" … … 295 308 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 296 309 /> 297 <input tal:condition="s ubmission_allowed"310 <input tal:condition="show_check_boxes" 298 311 type="submit" name="delete_course_result:method" value="Delete selected" 299 312 class="destructive" i18n:attributes="value" … … 301 314 ('Do you really want to delete the courses selected?', )" 302 315 /> 303 <input tal:condition="s ubmission_allowed"316 <input tal:condition="show_check_boxes" 304 317 type="submit" name="refresh_level:method" 305 318 class="context" value="Update"
Note: See TracChangeset for help on using the changeset viewer.