Changeset 955


Ignore:
Timestamp:
28 Nov 2006, 10:20:34 (18 years ago)
Author:
joachim
Message:

new roles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/exportimport.py

    r950 r955  
    7979        students = getattr(campus,'students',None)
    8080        if academics is not None:
    81             academics.manage_setLocalGroupRoles(groupid='Authenticated',
     81            academics.manage_setLocalGroupRoles(groupid='role:Authenticated',
    8282                                         roles=('SectionReader',))
    8383        if students is not None:
    84             pm.setLocalGroupRoles(campus.students,['group:ClearanceOfficers',
    85                                            'role:Student',],'SectionReader')
     84            students.manage_setLocalGroupRoles(groupid = ('group:ClearanceOfficers',
     85                                                          'role:Student',),
     86                                              roles=('SectionReader',))
     87    members = getattr(site.portal_directories,'members')
     88    if members is not None:
     89        members.manage_setLocalGroupRoles(groupid='group:MemberAdmin',
     90                                         roles=('SectionOfficer',))
     91       
    8692##    pm.setLocalGroupRoles(campus.academics,['role:Authenticated',
    8793##                                           ],'SectionReader')
Note: See TracChangeset for help on using the changeset viewer.