Changeset 1972
- Timestamp:
- 28 Jun 2007, 04:21:24 (18 years ago)
- 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"1 z## Script (Python) "isSectionOfficer" 2 2 ##bind container=container 3 3 ##bind context=context … … 12 12 member = context.portal_membership.getAuthenticatedMember() 13 13 member_id = str(member) 14 o = ord(member_id[1]) 14 o = ord(member_id[1]) 15 15 if o >= 48 and o <= 57: 16 16 return False … … 20 20 return "SectionOfficer" in roles or\ 21 21 "SectionManager" in roles or\ 22 "Manager" in roles 23 22 "Manager" in roles 23 -
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
r1959 r1972 10 10 # $Id: $ 11 11 12 # if context.portal_membership.isAnonymousUser():13 # return False14 # return not context.isStudent()15 16 12 mtool = context.portal_membership 13 if mtool.isAnonymousUser(): 14 return False 17 15 member = mtool.getAuthenticatedMember() 18 16 member_id = str(member) 19 17 o = ord(member_id[1]) 20 18 return not (o >= 48 and o <= 57) 19
Note: See TracChangeset for help on using the changeset viewer.