Ignore:
Timestamp:
20 Nov 2006, 08:08:10 (18 years ago)
Author:
Henrik Bettermann
Message:

isManager renamed to isSectionManager

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt

    r895 r903  
    22<tal:block define="
    33           info context/getStudentInfo;
    4            isManager context/isManager;
     4           isSectionManager context/isSectionManager;
    55           isStaff context/isStaff;
    66           isClearanceOfficer context/isClearanceOfficer;
     
    88           review_state info/review_state;
    99           clear_review_state info/clear_review_state;
    10            editable python: (isStudent and clear_review_state == 'opened' or isManager) and not isClearanceOfficer;
     10           editable python: (isStudent and clear_review_state == 'opened' or isSectionManager) and not isClearanceOfficer;
    1111           mode python: test(editable,'edit','view');
    1212           rendered_main python:info['clear_doc'].render(request=request,
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt

    r895 r903  
    44<metal:block define-macro="header">
    55  <!--  Administration -->
    6   <tal:block condition="python: not(isStaff or isManager or isStudent)">
     6  <tal:block condition="python: not(isStaff or isSectionManager or isStudent)">
    77    <metal:block use-macro="here/error_not_found/macros/not_found" />
    88  </tal:block>
    9   <tal:block condition="python: isStaff or isManager">
     9  <tal:block condition="python: isStaff or isSectionManager">
    1010    <a href="" tal:condition="python: 0"
    1111       tal:attributes="href string:${here/academicsParent}">
     
    3434<!--  buttons -->
    3535<metal:block define-macro="buttons">
    36   <!--  isManager -->
    37   <tal:block condition="context/isManager">
     36  <!--  isSectionManager -->
     37  <tal:block condition="context/isSectionManager">
    3838 
    3939     <div tal:condition="python:info['review_state'] == 'clearance_pin_entered'">
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r894 r903  
    2121
    2222info = {}
    23 info['is_manager'] = context.isManager()
     23info['is_manager'] = context.isSectionManager()
    2424info['is_student'] = context.isStudent()
    2525info['is_co'] = context.isClearanceOfficer()
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py

    r845 r903  
    1818
    1919info = {}
    20 info['is_manager'] = context.isManager()
     20info['is_manager'] = context.isSectionManager()
    2121info['is_student'] = context.isStudent()
    2222info['action'] = "%s" % context.campus.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py

    r845 r903  
    4444student_id = pt[-(3+p)]
    4545level_id = pt[-(1+p)]
    46 info['is_manager'] = context.isManager()
     46info['is_manager'] = context.isSectionManager()
    4747info['is_student'] = context.isStudent()
    4848info['action'] = "%s" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py

    r896 r903  
    4949pr = context.portal_registration
    5050path_info = request.get('PATH_INFO').split('/')
    51 is_manager = context.isManager()
     51is_manager = context.isSectionManager()
    5252validate = request.has_key("cpsdocument_edit_button")
    5353default = {'search_mode': 'name',
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r894 r903  
    1717pm = context.portal_membership
    1818
    19 if pm.isAnonymousUser():
    20     return redirect("%s/srp_anonymous_view" % context.absolute_url())
    21 if context.isManager() or context.isStaff:
     19if context.isStaff():
    2220    if context.portal_type == 'StudentStudyCourse':
    2321        return context.study_course_view()
     
    3331    student = info['student']
    3432    return redirect("%s/student_view" % student.absolute_url())
     33
     34return redirect("%s/srp_anonymous_view" % context.absolute_url())
     35   
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r886 r903  
    2525if "ClearanceOfficers" in member.getGroups():
    2626    return redirect("%s/searchStudents" % students_url)
    27 if context.isManager():
     27if context.isSectionManager():
    2828    return redirect("%s/searchStudents" % students_url)
    2929if context.isStudent():
Note: See TracChangeset for help on using the changeset viewer.