Ignore:
Timestamp:
20 Nov 2006, 15:11:29 (18 years ago)
Author:
Henrik Bettermann
Message:

new local roles implemented
role SectionOfficer? not yet tested

Location:
WAeUP_SRP/trunk/skins/waeup_academics
Files:
17 edited

Legend:

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

    r805 r911  
    22            portal_status_message options/psm;
    33            objects options/objects;
    4             is_manager options/is_manager;
     4            is_so options/is_so;
    55            "
    66            >
     
    1414   
    1515    <metal:main fill-slot="main">
    16       <span tal:condition="not: is_manager">
     16      <span tal:condition="not: is_so">
    1717        <metal:block use-macro="here/error_not_found/macros/not_found" />
    1818      </span>
    19       <span tal:condition="is_manager"
     19      <span tal:condition="is_so"
    2020        tal:define="items objects;
    2121        columns python:3;
     
    5454                tal:attributes="class python:test(repeat['object'].even(), 'even ajaxtd', 'odd ajaxtd')">
    5555                <td align="left" valign="middle" style="width: 5px;"
    56                     tal:condition="is_manager">
     56                    tal:condition="is_so">
    5757                  <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    58                          tal:condition="is_manager"
     58                         tal:condition="is_so"
    5959                         tal:define="id object/id"
    6060                         tal:attributes="value id;
     
    8585            <td align="left" valign="top" rowspan="3"></td>
    8686            <td align="left" valign="top">
    87               <span tal:condition="is_manager">
     87              <span tal:condition="is_so">
    8888                <input type="button" value="button_select_all" class="context"
    8989                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getFacultiesInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    2424            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    2525            <td align="left" valign="middle" style="width: 5px;"
    26                 tal:condition="is_manager">
     26                tal:condition="is_so">
    2727              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    28                      tal:condition="is_manager"
     28                     tal:condition="is_so"
    2929                     tal:define="id row/id"
    3030                     tal:attributes="value id;
     
    5454            <td align="left" valign="top" rowspan="3"></td>
    5555            <td align="left" valign="top">
    56               <span tal:condition="is_manager">
     56              <span tal:condition="is_so">
    5757                <input type="button" value="button_select_all" class="context"
    5858                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/certificate_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getCertificateInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    2626            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    2727            <td align="left" valign="middle" style="width: 5px;"
    28                 tal:condition="is_manager">
     28                tal:condition="is_so">
    2929              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    30                      tal:condition="is_manager"
     30                     tal:condition="is_so"
    3131                     tal:define="id row/id"
    3232                     tal:attributes="value id;
     
    4545            <td align="left" valign="top" rowspan="3"></td>
    4646            <td align="left" valign="top">
    47               <span tal:condition="is_manager">
     47              <span tal:condition="is_so">
    4848                <input type="button" value="button_select_all" class="context"
    4949                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/certificates_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getCertificatesInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    2525            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    2626            <td align="left" valign="middle" style="width: 5px;"
    27                 tal:condition="is_manager">
     27                tal:condition="is_so">
    2828              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    29                      tal:condition="is_manager"
     29                     tal:condition="is_so"
    3030                     tal:define="id row/id"
    3131                     tal:attributes="value id;
     
    4444            <td align="left" valign="top" rowspan="3"></td>
    4545            <td align="left" valign="top">
    46               <span tal:condition="is_manager">
     46              <span tal:condition="is_so">
    4747                <input type="button" value="button_select_all" class="context"
    4848                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/courses_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getCoursesInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    5353                  tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    5454                <td align="left" valign="middle" style="width: 5px;"
    55                     tal:condition="is_manager">
     55                    tal:condition="is_so">
    5656                  <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    57                          tal:condition="is_manager"
     57                         tal:condition="is_so"
    5858                         tal:define="id row/id"
    5959                         tal:attributes="value id;
     
    8484                <td align="left" valign="top" rowspan="3"></td>
    8585                <td align="left" valign="top">
    86                   <span tal:condition="is_manager">
     86                  <span tal:condition="is_so">
    8787                    <input type="button" value="button_select_all" class="context"
    8888                           onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/department_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getCoursesCertificatesInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    4545            <td align="left" valign="top" rowspan="3"></td>
    4646            <td align="left" valign="top">
    47               <span tal:condition="is_manager">
     47              <span tal:condition="is_so">
    4848                <input type="button" value="button_select_all" class="context"
    4949                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/faculty_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getDepartmentsInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    2626            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    2727            <td align="left" valign="middle" style="width: 5px;"
    28                 tal:condition="is_manager">
     28                tal:condition="is_so">
    2929              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    30                      tal:condition="is_manager"
     30                     tal:condition="is_so"
    3131                     tal:define="id row/id"
    3232                     tal:attributes="value id;
     
    5656            <td align="left" valign="top" rowspan="3"></td>
    5757            <td align="left" valign="top">
    58               <span tal:condition="is_manager">
     58              <span tal:condition="is_so">
    5959                <input type="button" value="button_select_all" class="context"
    6060                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py

    r903 r911  
    1818
    1919info = {}
    20 info['is_manager'] = context.isSectionManager()
     20info['is_sm'] = context.isSectionManager()
     21info['is_so'] = context.isSectionOfficer()
    2122info['is_student'] = context.isStudent()
    2223info['action'] = "%s" % context.campus.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/getCertificatesInfo.py

    r903 r911  
    2121#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2222dep_id = context.aq_parent.getId()
    23 info['is_manager'] = context.isSectionManager()
     23info['is_sm'] = context.isSectionManager()
     24info['is_so'] = context.isSectionOfficer()
    2425info['is_student'] = context.isStudent()
    2526info['action'] = "%s" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py

    r903 r911  
    1818
    1919info = {}
    20 info['is_manager'] = context.isSectionManager()
     20info['is_sm'] = context.isSectionManager()
     21info['is_so'] = context.isSectionOfficer()
    2122info['is_student'] = context.isStudent()
    2223info['action'] = "%s/faculty_view" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py

    r903 r911  
    2121#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2222dep_id = context.aq_parent.getId()
    23 info['is_manager'] = context.isSectionManager()
     23info['is_sm'] = context.isSectionManager()
     24info['is_so'] = context.isSectionOfficer()
    2425info['is_student'] = context.isStudent()
    2526info['action'] = "%s" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py

    r903 r911  
    2222member_id = str(member)
    2323roles = member.getRolesInContext(context)
    24 info['is_manager'] = context.isSectionManager()
     24info['is_sm'] = context.isSectionManager()
     25info['is_so'] = context.isSectionOfficer()
    2526info['is_student'] = context.isStudent()
    2627info['action'] = "%s" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py

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

    r903 r911  
    1919
    2020info = {}
    21 info['is_manager'] = context.isSectionManager()
     21info['is_sm'] = context.isSectionManager()
     22info['is_so'] = context.isSectionOfficer()
    2223info['is_student'] = context.isStudent()
    2324info['action'] = "%s" % context.campus.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py

    r903 r911  
    2828cert_id = pt[-(2+p)]
    2929level_id = pt[-(1+p)]
    30 info['is_manager'] = context.isSectionManager()
     30info['is_sm'] = context.isSectionManager()
     31info['is_so'] = context.isSectionOfficer()
    3132info['is_student'] = context.isStudent()
    3233info['action'] = "%s" % context.absolute_url()
  • WAeUP_SRP/trunk/skins/waeup_academics/level_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getLevelInfo;
    2             is_manager info/is_manager|nothing;"
     2            is_so info/is_so|nothing;"
    33            >
    44  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    2727                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    2828              <td align="left" valign="middle" style="width: 5px;"
    29                   tal:condition="is_manager">
     29                  tal:condition="is_so">
    3030                <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    31                        tal:condition="is_manager"
     31                       tal:condition="is_so"
    3232                       tal:define="id row/id"
    3333                       tal:attributes="value id;
     
    5757            <td align="left" valign="top" rowspan="3"></td>
    5858            <td align="left" valign="top">
    59               <span tal:condition="is_manager">
     59              <span tal:condition="is_so">
    6060                <input type="button" value="button_select_all" class="context"
    6161                       onclick="someJavaScriptFunctionThatWillBeReplaced"
  • WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py

    r903 r911  
    2222mtool = context.portal_membership
    2323path_info = request.get('PATH_INFO').split('/')
    24 is_manager = context.isSectionManager
     24is_sm = context.isSectionManager()
    2525validate = request.has_key("cpsdocument_edit_button")
    2626items = []
     
    4444                             #psm = "%s, %s" % (psm,ds),
    4545                             objects = items,
    46                              is_manager = is_manager,
     46                             is_sm = is_sm,
    4747                             choosen_ids = choosen_ids,
    4848                             )
     
    6363                             #psm = "%s, %s" % (psm,ds),
    6464                             students = items,
    65                              is_manager = is_manager,
     65                             is_sm = is_sm,
    6666                             choosen_ids = choosen_ids,
    6767                             )
     
    9797                             #psm = "%s, %s" % (psm,ds),
    9898                             objects = objects,
    99                              is_manager = is_manager,
     99                             is_sm = is_sm,
    100100                             choosen_ids = choosen_ids,
    101101                             )
Note: See TracChangeset for help on using the changeset viewer.