Changeset 204 for waeup_product/trunk/skins
- Timestamp:
- 16 May 2006, 12:50:17 (19 years ago)
- Location:
- waeup_product/trunk/skins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/logged_in.pt
r125 r204 39 39 > 40 40 <tal:block 41 condition="python: 'Students' in member.getGroups()"41 condition="python:1 or 'Student' in member.getRoles()" 42 42 tal:define="dummy python: context.process_waeup_login(member=member,sc_pin=request.get('sc_pin'))" /> 43 43 <tal:block condition="first_time"> -
waeup_product/trunk/skins/waeup_student/create_jamb.py
r173 r204 52 52 try: 53 53 #pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student','Contributor')) 54 pr.addMember(s_id, '123456',roles=('Member','CPSMember','Student' ,'Contributor'))54 pr.addMember(s_id, '123456',roles=('Member','CPSMember','Student')) 55 55 except: 56 56 noCPSMember = True 57 57 if noCPSMember: 58 58 #pr.addMember(s_id, 'UnSeT',roles=('Member','Student','Contributor')) 59 pr.addMember(s_id, '123456',roles=('Member','Student','Contributor')) 60 student.manage_setLocalRoles(s_id, ['Owner']) 61 jamb.manage_setLocalRoles(s_id, ['Owner']) 62 ## student.getContent().setOwnership(s_id) 63 ## jamb.getContent().setOwnership(s_id) 64 ## groups = context.portal_directories.groups 65 ## gm = list(groups.getEntry('Students')['members']) 66 ## gm.extend((s_id,)) 67 ## groups.editEntry({'group': 'Students', 68 ## 'members': gm}) 59 pr.addMember(s_id, '123456',roles=('Member','Student')) 60 student.manage_setLocalRoles(s_id, ['Owner',]) 61 jamb.manage_setLocalRoles(s_id, ['Owner',]) 69 62 return context.students_folder_view_manager(psm=psm) 70 63 -
waeup_product/trunk/skins/waeup_student/process_waeup_login.py
r182 r204 8 8 response=request.response 9 9 10 if request.form.get('submit') == 'Login':11 #waeup = context.portal_catalog(id = 'demouni')[0]12 waeup = context.portal_catalog(portal_type = 'University')[0]13 if "Manager" in member.getRoles():14 return15 return response.redirect(waeup.getURL())10 ##if request.form.get('submit') == 'Login': 11 ## #waeup = context.portal_catalog(id = 'demouni')[0] 12 ## waeup = context.portal_catalog(portal_type = 'University')[0] 13 ## if "Manager" in member.getRoles(): 14 ## return 15 ## return response.redirect(waeup.getURL()) 16 16 17 17 member_id = str(member)
Note: See TracChangeset for help on using the changeset viewer.