Ignore:
Timestamp:
21 Sep 2008, 06:01:55 (16 years ago)
Author:
Henrik Bettermann
Message:
  • Implement Student Pastoral Report for secondary schools
File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/ois/waeup_custom/getStudyLevelInfo.py

    r3628 r3682  
    7676cert_id = student.course
    7777info['cert_id'] = cert_id
    78 if context.objectIds():
    79     course_results.moveResultsHere(context,student_id)
    80     logger.info("%s initiated moveResultsHere for %s in level %s" % (member_id,student_id,level_id))
    8178total_credits,gpa,carry_overs,normal1,normal2,normal3 = course_results.getCourses(student_id,level_id)
    8279info['total_credits'] = total_credits
     
    8481#start customization
    8582
     83
     84
    8685max_credits = 58
    8786info['without_score'] = False
    8887info['without_cascore'] = False
    8988
    90 
    91 
    92 
    93 
    94 
    95 
     89items = []
     90subobjects = context.objectValues()
     91for subobject in subobjects:
     92    row = {}
     93    row['id'] = subobject.getId()
     94    row['title'] = '%s' % context.portal_vocabularies.terms.get(subobject.getId())
     95    items.append(row)
     96info['items'] = items
    9697
    9798
Note: See TracChangeset for help on using the changeset viewer.