Changeset 913


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
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getFacultiesInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isSectionOfficer;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_academics/certificate_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getCertificateInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isSectionOfficer;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_academics/certificates_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getCertificatesInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isSectionOfficer;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_academics/courses_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getCoursesInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isSectionOfficer;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_academics/department_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getCoursesCertificatesInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isSectionOfficer;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_academics/faculty_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getDepartmentsInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isSectionOfficer;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.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_academics/getCertificatesInfo.py

    r911 r913  
    2121#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2222dep_id = context.aq_parent.getId()
    23 info['is_sm'] = context.isSectionManager()
    24 info['is_so'] = context.isSectionOfficer()
    25 info['is_student'] = context.isStudent()
    2623info['action'] = "%s" % context.absolute_url()
    2724info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.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/faculty_view" % context.absolute_url()
    2421info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py

    r911 r913  
    2121#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2222dep_id = context.aq_parent.getId()
    23 info['is_sm'] = context.isSectionManager()
    24 info['is_so'] = context.isSectionOfficer()
    25 info['is_student'] = context.isStudent()
    2623info['action'] = "%s" % context.absolute_url()
    2724info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py

    r911 r913  
    2222member_id = str(member)
    2323roles = member.getRolesInContext(context)
    24 info['is_sm'] = context.isSectionManager()
    25 info['is_so'] = context.isSectionOfficer()
    26 info['is_student'] = context.isStudent()
    2724info['action'] = "%s" % context.absolute_url()
    2825info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py

    r911 r913  
    1818
    1919info = {}
    20 info['is_sm'] = context.isSectionManager()
    21 info['is_so'] = context.isSectionOfficer()
    22 info['is_student'] = context.isStudent()
    2320info['doc'] = context.getContent()
    2421return info
  • WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py

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

    r911 r913  
    2828cert_id = pt[-(2+p)]
    2929level_id = pt[-(1+p)]
    30 info['is_sm'] = context.isSectionManager()
    31 info['is_so'] = context.isSectionOfficer()
    32 info['is_student'] = context.isStudent()
    3330info['action'] = "%s" % context.absolute_url()
    3431info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_academics/level_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getLevelInfo;
    2             is_so info/is_so|nothing;"
     2            is_so context/isStudent;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt

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

    r911 r913  
    1919
    2020info = {}
    21 info['is_sm'] = context.isSectionManager()
    22 info['is_so'] = context.isSectionOfficer()
    23 info['is_student'] = context.isStudent()
    2421info['action'] = "%s" % context.absolute_url()
    2522info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py

    r911 r913  
    2121#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2222dep_id = context.aq_parent.getId()
    23 info['is_sm'] = context.isSectionManager()
    24 info['is_so'] = context.isSectionOfficer()
    25 info['is_student'] = context.isStudent()
    2623info['action'] = "%s" % context.absolute_url()
    2724info['choosen_ids'] = request.get('ids',[])
  • WAeUP_SRP/trunk/skins/waeup_default/external_edit_form.pt

    r859 r913  
    77    form_action string:external_edit;
    88    form_type string:external;
    9     edition python:True;
     9    is_allowed context/isSectionOfficer;
    1010    creation python:False;
    1111    metadata metadata|nothing;"
  • WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py

    r912 r913  
    1212return the dynamic roles
    1313"""
    14 return ('ClearanceOfficer','CourseAdviser')
     14return ('ClearanceOfficer','CourseAdviser', SectionManager')
    1515
  • WAeUP_SRP/trunk/skins/waeup_default/portlet_session_info.pt

    r785 r913  
    66  <tal:block condition="context/isStudent">
    77       <strong>
    8          <span tal:condition="info/is_student|nothing" tal:content="python:info['student_doc'].Title()" />
     8         <span tal:condition="context/isStudent|nothing" tal:content="python:info['student_doc'].Title()" />
    99       </strong>
    1010  </tal:block>
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_document_view.pt

    r911 r913  
    11<metal:html tal:define="info context/getDocumentInfo;
    22                        s_info context/getStudentInfo;
    3                         is_so info/is_so|nothing;"
     3                        is_so context/isSectionOfficer;"
    44            >
    55  <metal:body use-macro="here/waeup_content_master/macros/master">
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt

    r911 r913  
    88           form_type string:waeup;
    99           creation python:False;
    10            is_allowed context/isSectionOfficer
     10           is_allowed context/isSectionOfficer;
    1111           metadata metadata|nothing;
    1212           ">
  • 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.