Changeset 2761


Ignore:
Timestamp:
26 Nov 2007, 09:45:58 (17 years ago)
Author:
Henrik Bettermann
Message:

don't show score 0

show carry-over courses on slip properly

Location:
WAeUP_SRP/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTables.py

    r2757 r2761  
    13191319        normal1 = []
    13201320        normal2 = []
    1321         normal3 = [] 
     1321        normal3 = []
    13221322        total_credits = 0
    13231323        gpa = 0
    13241324        for brain in course_results:
    13251325            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
    13281334            if str(brain.credits).isdigit():
    13291335                credits = int(brain.credits)
     
    13331339
    13341340                    grade,weight = self.getGradesFromScore(score)
    1335                     #weight = 4
    1336                     #grade = 'B'
    13371341                    if weight:
    13381342                        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
    13471347            d['coe'] = ''
    13481348            if brain.core_or_elective:
     
    13591359            d['semester'] = str(course.semester)
    13601360            if brain.carry_over:
    1361                 d['coe'] = 'Carry-Over'
     1361                d['coe'] = 'CO'
    13621362                carry_overs.append(d)
    13631363            else:
  • WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py

    r2758 r2761  
    1 z## Script (Python) "getPaymentsFolderInfo"
     1## Script (Python) "getPaymentsFolderInfo"
    22##bind container=container
    33##bind context=context
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r2760 r2761  
    7777      <br />
    7878      <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>         
    7992        <tr tal:repeat="row info/carry_overs"
    8093            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     
    128141        <th align='center'>wt</th>
    129142        <th align='center'></th>
    130         <th align='center'></th>   
     143        <th tal:condition="submission_allowed" align='center'></th>   
    131144           
    132145        </tr>               
     
    206219      <br />
    207220     
    208       <table tal:condition="python: is_student and submission_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"
    209222             class="folderButtons">
    210223        <tr>
     
    283296        </tr>
    284297      </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"
    286299             class="folderButtons">
    287300        <tr>
    288301          <td align="left" valign="top" rowspan="3"></td>
    289302          <td align="left" valign="top">
    290               <input tal:condition="submission_allowed"
     303              <input tal:condition="show_check_boxes"
    291304                     type="button" value="Select all" class="context"
    292305                     onclick="someJavaScriptFunctionThatWillBeReplaced"
     
    295308                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
    296309                     />
    297               <input tal:condition="submission_allowed"
     310              <input tal:condition="show_check_boxes"
    298311                     type="submit" name="delete_course_result:method" value="Delete selected"
    299312                     class="destructive" i18n:attributes="value"
     
    301314                     ('Do you really want to delete the courses selected?', )"
    302315                     />
    303               <input tal:condition="submission_allowed"
     316              <input tal:condition="show_check_boxes"
    304317                     type="submit" name="refresh_level:method"
    305318                     class="context" value="Update"
Note: See TracChangeset for help on using the changeset viewer.