Changeset 768 for WAeUP_SRP/trunk


Ignore:
Timestamp:
27 Oct 2006, 19:41:01 (18 years ago)
Author:
Henrik Bettermann
Message:

view method changed

File:
1 edited

Legend:

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

    r767 r768  
    6868else:
    6969    info['clear'] = None
     70   
     71res = context.portal_catalog(container_path=student_path,
     72                             portal_type='StudentPume')
     73if res:
     74    pume = res[0].getObject()
     75    info['pume'] = clear
     76    info['pume_doc'] = pume.getContent()
     77    info['pume_review_state'] = wf.getInfoFor(pume,'review_state',None)
     78else:
     79    info['pume'] = None   
    7080
    7181items = []
    7282s_edit_links = {'StudentApplication': 'student_edit',
    7383              'StudentAccommodation': '',
    74               'StudentClearance': 'clearance_student',
     84              'StudentClearance': 'clearance_edit',
    7585              'StudentPersonal': '',
    7686              }
    7787s_view_links = {'StudentApplication': None,
    7888              'StudentAccommodation': 'accommodation_view',
    79               'StudentClearance': None,
     89              'StudentClearance': 'clearance_view',
    8090              'StudentPersonal': None,
    8191              'StudentApplication': 'application_view',
    8292              'StudentStudyCourse': 'study_course_view',
     93              'StudentPume': 'pume_view',
    8394              }
    8495sos = context.portal_catalog(container_path=student_path)
Note: See TracChangeset for help on using the changeset viewer.