Changeset 940
- Timestamp:
- 25 Nov 2006, 13:07:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/exportimport.py
r926 r940 74 74 site = context.getSite() 75 75 pm = site.portal_membership 76 campus = site.portal_url.getPortalObject().campus 77 campus.academics.manage_setLocalGroupRoles(groupid='Authenticated', 76 campus = getattr(site.portal_url.getPortalObject(),'campus',None) 77 if campus is not None: 78 campus.academics.manage_setLocalGroupRoles(groupid='Authenticated', 78 79 roles=('SectionReader',)) 79 pm.setLocalGroupRoles(campus.students,['group:ClearanceOfficers',80 pm.setLocalGroupRoles(campus.students,['group:ClearanceOfficers', 80 81 'role:Student',],'SectionReader') 81 82 ## pm.setLocalGroupRoles(campus.academics,['role:Authenticated',
Note: See TracChangeset for help on using the changeset viewer.