Ignore:
Timestamp:
21 Nov 2006, 10:49:45 (18 years ago)
Author:
Henrik Bettermann
Message:

is_* keys removed from get* functions

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

Legend:

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

    r911 r913  
    11<metal:html tal:define="info context/getStudentInfo;
    2                         is_so info/is_so|nothing;
    3                         is_student info/is_student|nothing;
     2                        is_so context/isSectionOfficer;
     3                        is_student context/isStudent;
    44                        ">
    55  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r911 r913  
    2121
    2222info = {}
    23 info['is_sm'] = context.isSectionManager()
    24 info['is_student'] = context.isStudent()
    25 info['is_co'] = context.isClearanceOfficer()
    26 info['is_so'] = context.isSectionOfficer()
    2723member_id = str(member)
    2824if student is None:
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py

    r911 r913  
    1818
    1919info = {}
    20 info['is_sm'] = context.isSectionManager()
    21 info['is_so'] = context.isSectionOfficer()
    22 info['is_student'] = context.isStudent()
    2320info['action'] = "%s" % context.campus.absolute_url()
    2421info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py

    r911 r913  
    4444student_id = pt[-(3+p)]
    4545level_id = pt[-(1+p)]
    46 info['is_sm'] = context.isSectionManager()
    47 info['is_so'] = context.isSectionOfficer()
    48 info['is_student'] = context.isStudent()
    4946info['action'] = "%s" % context.absolute_url()
    5047info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getStudentInfo;
    2                 is_so info/is_so|nothing;
     2                is_so context/isSectionOfficer;
    33                is_staff context/isStaff;
    4                 is_student info/is_student|nothing">
     4                is_student context/isStudent">
    55  <metal:body use-macro="here/main_template/macros/master">
    66    <metal:main fill-slot="main">
  • WAeUP_SRP/trunk/skins/waeup_student/study_course_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getStudyCourseInfo;
    2             is_so info/is_so|nothing;
     2            is_so context/isSectionOfficer;
    33            s_info context/getStudentInfo;"
    44            >
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getStudyLevelInfo;
    2             is_so info/is_so|nothing;
     2            is_so context/isSectionOfficer;
    33            s_info context/getStudentInfo;"
    44            >
Note: See TracChangeset for help on using the changeset viewer.