Changeset 940


Ignore:
Timestamp:
25 Nov 2006, 13:07:10 (18 years ago)
Author:
joachim
Message:

fix attribute error.
academics can not be created since waeup_section_wf is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/exportimport.py

    r926 r940  
    7474    site = context.getSite()
    7575    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',
    7879                                         roles=('SectionReader',))
    79     pm.setLocalGroupRoles(campus.students,['group:ClearanceOfficers',
     80        pm.setLocalGroupRoles(campus.students,['group:ClearanceOfficers',
    8081                                           'role:Student',],'SectionReader')
    8182##    pm.setLocalGroupRoles(campus.academics,['role:Authenticated',
Note: See TracChangeset for help on using the changeset viewer.