Changeset 525 for WAeUP_SRP/trunk


Ignore:
Timestamp:
15 Sep 2006, 15:39:08 (18 years ago)
Author:
joachim
Message:

fixed attribute error students

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/getCPSCandidateLocalRoles.py

    r486 r525  
    1818mtool = getToolByName(context, 'portal_membership')
    1919#return mtool.getCPSCandidateLocalRoles(context)
    20 return ['Manager','SectionReader','SectionManager']
     20return ['Manager','SectionReader','SectionManager','Student','Staff']
  • WAeUP_SRP/trunk/skins/waeup_student/get_student_info.py

    r523 r525  
    1717
    1818info = {}
    19 student = getattr(context.students,str(member),None)
     19students = getattr(context,'students',None)
     20if students is None:
     21    students = getattr(context.campus,'students',None)
     22student = getattr(students,str(member),None)
    2023if student is None:
    2124    return
     25
    2226info['review_state'] = wf.getInfoFor(student,'review_state','keiner')
    2327#info['wf_state'] = 'keiner'
Note: See TracChangeset for help on using the changeset viewer.