Changeset 1972 for WAeUP_SRP/trunk


Ignore:
Timestamp:
28 Jun 2007, 04:21:24 (18 years ago)
Author:
Henrik Bettermann
Message:

was not yet changed in the file system

Location:
WAeUP_SRP/trunk/skins/waeup_default
Files:
2 edited

Legend:

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

    r1959 r1972  
    1 ## Script (Python) "isSectionOfficer"
     1z## Script (Python) "isSectionOfficer"
    22##bind container=container
    33##bind context=context
     
    1212member = context.portal_membership.getAuthenticatedMember()
    1313member_id = str(member)
    14 o = ord(member_id[1]) 
     14o = ord(member_id[1])
    1515if o >= 48 and o <= 57:
    1616    return False
     
    2020return "SectionOfficer" in roles or\
    2121       "SectionManager" in roles or\
    22        "Manager" in roles 
    23        
     22       "Manager" in roles
     23
  • WAeUP_SRP/trunk/skins/waeup_default/isStaff.py

    r1959 r1972  
    1010# $Id: $
    1111
    12 # if context.portal_membership.isAnonymousUser():
    13 #     return False
    14 # return not context.isStudent()
    15 
    1612mtool = context.portal_membership
     13if mtool.isAnonymousUser():
     14    return False
    1715member = mtool.getAuthenticatedMember()
    1816member_id = str(member)
    1917o = ord(member_id[1])
    2018return not (o >= 48 and o <= 57)
     19
Note: See TracChangeset for help on using the changeset viewer.