Ignore:
Timestamp:
3 Jan 2007, 18:08:07 (18 years ago)
Author:
joachim
Message:

optimized personal_view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getPersonalInfo.py

    r1167 r1186  
    3838students_object = context.portal_url.getPortalObject().campus.students
    3939student = getattr(students_object, student_id)
    40 info['id'] = student_id
    41 info['student'] = student
    42 info['review_state'] = wf.getInfoFor(student,'review_state',None)
    43 info['per'] = student.personal
     40#info['id'] = student_id
     41#info['student'] = student
     42res = context.portal_catalog(portal_type='Student',id = student_id)
     43if res:
     44    info['review_state'] = res[0].review_state
     45#info['review_state'] = wf.getInfoFor(student,'review_state',None)
     46#info['per'] = student.personal
    4447info['per_doc'] = student.personal.getContent()
    4548return info
Note: See TracChangeset for help on using the changeset viewer.