Changeset 912
- Timestamp:
- 20 Nov 2006, 18:24:56 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py
r902 r912 75 75 if real_object.portal_type not in ("Student","StudentClearance"): 76 76 break 77 #import pdb;pdb.set_trace()78 77 sc = getattr(real_object,'study_course',None) 79 78 if sc is None: … … 84 83 break 85 84 dynamic_roles = self.getRolesInContext(res[0].getObject()) 85 #import pdb;pdb.set_trace() 86 86 for dr in self.getDynamicRoles(): 87 87 if dr in dynamic_roles: -
WAeUP_SRP/trunk/Widgets.py
r843 r912 297 297 else: 298 298 widget_id = self.getWidgetId() 299 value = datastructure[widget_id] 299 value = datastructure[widget_id].upper() 300 300 err = 0 301 301 if not (len(value) == self.digits + self.letters and value[:self.digits].isdigit() and value[self.digits:].isalpha()): -
WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py
r911 r912 12 12 return the dynamic roles 13 13 """ 14 return ('ClearanceOfficer','CourseAdviser' ,'SectionManager')14 return ('ClearanceOfficer','CourseAdviser') 15 15 -
WAeUP_SRP/trunk/skins/waeup_default/isSectionManager.py
r903 r912 12 12 mtool = context.portal_membership 13 13 roles = mtool.getAuthenticatedMember().getRolesInContext(context) 14 context.REQUEST.set("roles",roles) 14 15 return "SectionManager" in roles or\ 15 16 "Manager" in roles
Note: See TracChangeset for help on using the changeset viewer.