Ignore:
Timestamp:
25 Jun 2007, 18:45:38 (17 years ago)
Author:
joachim
Message:

replace calls to isStudent by inline statements, please test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/isSectionOfficer.py

    r1077 r1957  
    1010# $Id: isManager.py 888 2006-11-17 21:28:48Z henrik $
    1111
    12 if context.isStudent():
     12member = context.portal_membership.getAuthenticatedMember()
     13member_id = str(member)
     14for c in member_id:
     15    is_student = True
     16    if c not in ('0123456789'):
     17        is_student = False
     18        break
     19if is_student and len(member_id) == 7:
    1320    return False
    14 mtool = context.portal_membership
    15 roles = mtool.getAuthenticatedMember().getRolesInContext(context)
     21# if context.isStudent():
     22#     return False
     23roles = member.getRolesInContext(context)
    1624return "SectionOfficer" in roles or\
    1725       "SectionManager" in roles or\
Note: See TracChangeset for help on using the changeset viewer.