Changeset 57 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 19 Oct 2005, 09:42:03 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 2 edited
- 2 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/create_jamb.py
r53 r57 50 50 context.notifyCPSDocumentCreation(ob=jamb) 51 51 psm = 'Student created' 52 pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember')) 52 noCPSMember = False 53 try: 54 pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember')) 55 except: 56 noCPSMember = True 57 if noCPSMember: 58 pr.addMember(s_id, 'UnSeT',roles=('Member',)) 53 59 groups = context.portal_directories.groups 54 60 gm = list(groups.getEntry('Students')['members']) … … 56 62 groups.editEntry({'group': 'Students', 57 63 'members': gm}) 58 return context.student _folder_view(psm=psm)64 return context.students_folder_view_manager(psm=psm) 59 65 ## return context.create_jamb_form(rendered = res, 60 66 ## psm = psm, -
waeup_product/trunk/skins/waeup_student/process_waeup_login.py
r54 r57 27 27 pkw = {} 28 28 pkw['sex'] = getattr(jamb,'sex') 29 pkw['lastname'] = getattr(jamb,'name') 29 pkw['firstname'] = getattr(jamb,'firstname') 30 pkw['middlename'] = getattr(jamb,'middlename') 31 pkw['lastname'] = getattr(jamb,'lastname') 32 pkw['aggregate'] = getattr(jamb,'aggregate') 33 pkw['faculty'] = getattr(jamb,'faculty') 34 pkw['age'] = getattr(jamb,'age') 35 pkw['state'] = getattr(jamb,'state') 36 30 37 pd.edit(mapping=pkw) 31 38 context.notifyCPSDocumentCreation(ob=pd) -
waeup_product/trunk/skins/waeup_student/students_folder_view.py
r48 r57 6 6 will be displayed, otherwise first post will be displayed.""" 7 7 8 admin = "SectionManager" in context.portal_membership.getAuthenticatedMember().getRolesInContext(context)9 8 10 return context.student_folder_view_main(admin = admin,psm=psm,groups=groups) 9 member = context.portal_membership.getAuthenticatedMember() 10 if member: 11 if 'Student' in member.getGroups(): 12 return context.students_folder_view_students(psm=psm,groups=groups) 13 if 'StudentsManager' in member.getGroups(): 14 return context.students_folder_view_manager(psm=psm,groups=groups) 15 return context.students_folder_view_anon(psm=psm,groups=groups)
Note: See TracChangeset for help on using the changeset viewer.