Changeset 912


Ignore:
Timestamp:
20 Nov 2006, 18:24:56 (18 years ago)
Author:
joachim
Message:

=removed SectionManager? from getDynamicRoles, convert jamb_reg_no to uppercase

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py

    r902 r912  
    7575        if real_object.portal_type not in ("Student","StudentClearance"):
    7676            break
    77         #import pdb;pdb.set_trace()
    7877        sc = getattr(real_object,'study_course',None)
    7978        if sc is None:
     
    8483            break
    8584        dynamic_roles = self.getRolesInContext(res[0].getObject())
     85        #import pdb;pdb.set_trace()
    8686        for dr in self.getDynamicRoles():
    8787            if dr in dynamic_roles:
  • WAeUP_SRP/trunk/Widgets.py

    r843 r912  
    297297        else:
    298298            widget_id = self.getWidgetId()
    299             value = datastructure[widget_id]
     299            value = datastructure[widget_id].upper()
    300300            err = 0
    301301            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  
    1212return the dynamic roles
    1313"""
    14 return ('ClearanceOfficer','CourseAdviser','SectionManager')
     14return ('ClearanceOfficer','CourseAdviser')
    1515
  • WAeUP_SRP/trunk/skins/waeup_default/isSectionManager.py

    r903 r912  
    1212mtool = context.portal_membership
    1313roles = mtool.getAuthenticatedMember().getRolesInContext(context)
     14context.REQUEST.set("roles",roles)
    1415return "SectionManager" in roles or\
    1516       "Manager" in roles
Note: See TracChangeset for help on using the changeset viewer.