- Timestamp:
- 15 Dec 2006, 15:28:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py
r1035 r1066 80 80 if sc is None: 81 81 break 82 dep_id = real_object.study_course.getContent().department 82 res = self.students_catalog(id=self.getStudentId()) 83 if len(res) != 1: 84 break 85 dep_id = res[0].department 83 86 res = self.portal_catalog(portal_type="Department",id=dep_id) 84 87 if len(res) != 1: 85 88 break 86 89 dynamic_roles = self.getRolesInContext(res[0].getObject()) 87 #import pdb;pdb.set_trace() 88 for dr in self.getDynamicRoles(): 90 for dr in ('ClearanceOfficer','CourseAdviser', 'SectionManager'): 89 91 if dr in dynamic_roles: 90 92 roles.append(dr)
Note: See TracChangeset for help on using the changeset viewer.