Changeset 1563 for WAeUP_SRP/trunk
- Timestamp:
- 16 Mar 2007, 13:01:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py
r1549 r1563 71 71 ## patch to assign dynamic roles for WAeUP 72 72 while 1: 73 if self.isStudent(): 74 break 73 75 if callable(real_object) and hasattr(real_object,'im_self'): 74 76 real_object = real_object.im_self 75 77 78 if real_object is None: 79 break 76 80 if hasattr(real_object,'portal_type') and\ 77 81 real_object.portal_type not in ("Student","StudentClearance","StudentStudyLevel"): 78 82 break 79 83 80 #from pdb import set_trace;set_trace()84 from pdb import set_trace;set_trace() 81 85 # can be later simplified by replacing by students_catalog values - Henrik 82 86 # getattr works always because of acquisition ?! Henrik
Note: See TracChangeset for help on using the changeset viewer.