Changeset 4006 for WAeUP_SRP/trunk/patches
- Timestamp:
- 8 Mar 2009, 08:25:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/patches/PatchCPSUserFolderUserFolder.py
r3903 r4006 126 126 allowed = set(('CourseAdviser', 'SectionManager')) 127 127 else: 128 res = self.portal_catalog(portal_type="Department",id=st_entry.department)129 128 allowed = set(('ClearanceOfficer', 'SectionManager')) 130 if len(res) != 1: 131 break 132 context_obj = res[0].getObject() 129 context_obj = getCertificateObject(self,st_entry) 130 if context_obj is None: 131 break 132 #res = self.portal_catalog(portal_type="Department",id=st_entry.department) 133 #if len(res) != 1: 134 # break 135 #context_obj = res[0].getObject() 133 136 dynamic_roles = set(self.getRolesInContext(context_obj)) 134 137 intersect = dynamic_roles & allowed
Note: See TracChangeset for help on using the changeset viewer.