Changeset 1959
- Timestamp:
- 25 Jun 2007, 20:17:04 (17 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py
r1957 r1959 81 81 #except: 82 82 # break 83 for c in name: 84 is_student = True 85 if c not in ('0123456789'): 86 is_student = False 87 if is_student and len(name) == 7: 83 o = ord(name[1]) 84 if o >= 48 and o <= 57: 88 85 break 89 86 groups = self.portal_membership.getAuthenticatedMember().getGroups() -
WAeUP_SRP/trunk/skins/waeup_default/isCourseAdviser.py
r1957 r1959 11 11 member = context.portal_membership.getAuthenticatedMember() 12 12 member_id = str(member) 13 for c in member_id: 14 is_student = True 15 if c not in ('0123456789'): 16 is_student = False 17 break 18 if is_student and len(member_id) == 7: 13 o = ord(member_id[1]) 14 if o >= 48 and o <= 57: 19 15 return False 20 16 # if context.isStudent(): -
WAeUP_SRP/trunk/skins/waeup_default/isSectionOfficer.py
r1957 r1959 12 12 member = context.portal_membership.getAuthenticatedMember() 13 13 member_id = str(member) 14 for c in member_id: 15 is_student = True 16 if c not in ('0123456789'): 17 is_student = False 18 break 19 if is_student and len(member_id) == 7: 14 o = ord(member_id[1]) 15 if o >= 48 and o <= 57: 20 16 return False 21 17 # if context.isStudent(): -
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
r1957 r1959 17 17 member = mtool.getAuthenticatedMember() 18 18 member_id = str(member) 19 for c in member_id: 20 is_student = True 21 if c not in ('0123456789'): 22 is_student = False 23 break 24 return not (is_student and len(member_id) == 7) 19 o = ord(member_id[1]) 20 return not (o >= 48 and o <= 57) -
WAeUP_SRP/trunk/skins/waeup_default/isStudent.py
r1957 r1959 19 19 # except: 20 20 # return False 21 for c in member_id: 22 is_student = True 23 if c not in ('0123456789'): 24 is_student = False 25 break 26 return is_student and len(member_id) == 7 21 o = ord(member_id[1]) 22 return o >= 48 and o <= 57
Note: See TracChangeset for help on using the changeset viewer.