Changeset 3565


Ignore:
Timestamp:
8 Jul 2008, 21:05:18 (16 years ago)
Author:
Henrik Bettermann
Message:

don't call results_import if not uniben

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py

    r3479 r3565  
    3636
    3737member_id = str(member)
    38 #from Products.zdb import set_trace;set_trace()
    39 # info = {}
    40 # is_student = info['is_student'] = context.isStudent()
    41 # is_staff = info['is_staff'] = context.isStaff()
    42 # is_sectionofficer = info['is_sectionofficer'] = context.isSectionOfficer()
    43 # while True:
    44 #     if mtool.isAnonymousUser():
    45 #         return None
    46 #     requested_id = context.getStudentId()
    47 #     if not is_student and requested_id:
    48 #         student_id = requested_id
    49 #         break
    50 #     if member_id != requested_id:
    51 #         logger.info('%s tried to access %s' % (member_id,requested_id))
    52 #         student_id = member_id
    53 #         mtool.assertViewable(context)
    54 #         break
    55 #     student_id = member_id
    56 #     break
     38
    5739info = context.waeup_tool.getAccessInfo(context)
    5840student_id = info['student_id']
     
    7557
    7658info['session'] = False
    77 if student_record.matric_no:
     59if student_record.matric_no and 'uniben' in context.portal_url.getPortalPath():
    7860    res = context.results_import(matric_no = student_record.matric_no)
    7961    if res:
Note: See TracChangeset for help on using the changeset viewer.