Changeset 5144


Ignore:
Timestamp:
13 Apr 2010, 07:27:13 (15 years ago)
Author:
Henrik Bettermann
Message:

fix schools #17

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_view.pt

    r4397 r5144  
    33          tal:define="info context/getStudyLevelInfo;
    44                      contact_student_form string:contact_student_form;
    5                       study_level_view string:study_level_view;">
     5                      academic_report_view string:academic_report_view;">
    66  <metal:block define-macro="edit_form">   
    77             
     
    119119          <td style='text-align:center' tal:content="row/exam"></td>
    120120          <td style='text-align:center' tal:content="row/score_calc"></td>
    121           <td style='text-align:center' tal:content="row/grade"></td>
     121          <td style='text-align:center' tal:content="row/session_id"></td>
    122122          <td style='text-align:center' tal:content="row/pic"></td>
    123123         
     
    173173                     
    174174              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
    175                      tal:attributes="value study_level_view"/> 
     175                     tal:attributes="value academic_report_view"/> 
    176176                     
    177177              <br /><br />
     
    217217                     
    218218              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
    219                      tal:attributes="value study_level_view"/>                         
     219                     tal:attributes="value academic_report_view"/>                         
    220220              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
    221221                     tal:attributes="value contact_student_form"/>                         
     
    254254                     
    255255              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
    256                      tal:attributes="value study_level_view"/>                         
     256                     tal:attributes="value academic_report_view"/>                         
    257257              <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
    258258                     tal:attributes="value contact_student_form"/>   
     
    277277                   />
    278278            <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
    279                      tal:attributes="value study_level_view"/>                       
     279                     tal:attributes="value academic_report_view"/>                       
    280280          </td>               
    281281      </table>
  • WAeUP_SRP/trunk/skins/waeup_student/refresh_level.py

    r3074 r5144  
    4545level = context
    4646level_id = context.getId()
     47session_id = context.getLevelSession(level.getContent(),student_id,level_id)
    4748res = context.portal_catalog(portal_type="Certificate", id = cert_id)
    4849query = Eq('student_id',student_id) & Eq('level_id', level_id)
     
    7374        d['student_id'] = student_id
    7475        d['level_id'] = level_id
     76        d['session_id'] = session_id
    7577        d['key'] = "%s|%s|%s" % (student_id,level_id,course_id)
    7678        records.append(d)
     
    7981
    8082#session.set('in_progress','finished')
    81 logger.info('%s updated course list' % member)
     83logger.info('%s updated level %s of %s' % (member,level_id,student_id))
    8284
    8385args = {}
Note: See TracChangeset for help on using the changeset viewer.