Changeset 902 for WAeUP_SRP


Ignore:
Timestamp:
20 Nov 2006, 07:39:43 (18 years ago)
Author:
joachim
Message:

fixed pume-import

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py

    r883 r902  
    7676            break
    7777        #import pdb;pdb.set_trace()
     78        sc = getattr(real_object,'study_course',None)
     79        if sc is None:
     80            break
    7881        dep_id = real_object.study_course.getContent().department
    7982        res = self.portal_catalog(portal_type="Department",id=dep_id)
  • WAeUP_SRP/trunk/Students.py

    r840 r902  
    657657                                     ),
    658658                             domains='',
     659                             homeless=True,
    659660                             properties = {'memberareaCreationFlag': False,},)
    660661        member = membership.getMemberById(sid)
  • WAeUP_SRP/trunk/exportimport.py

    r881 r902  
    7474    site = context.getSite()
    7575    pm = site.portal_membership
    76     #pm.setLocalGroupRoles(site,['group:ClearanceOfficers',],'SectionReader')
    77 
     76    campus = site.portal_url.getPortalObject().campus
     77    pm.setLocalGroupRoles(campus.students,['group:ClearanceOfficers',],'SectionReader')
    7878    importWAeUPTable(site.portal_accommodation, '', context,'accommodation')
    7979    importWAeUPTable(site.portal_pins, '', context,'pins')
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r895 r902  
    7171    args = getFormUidUrlArg(REQUEST)
    7272
    73 
    74 
    7573args['portal_status_message'] = psm
    7674url = clear.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.