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_default
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/getDynamicRoles.py

    r880 r911  
    1212return the dynamic roles
    1313"""
    14 return ('ClearanceOfficer','CourseAdviser')
     14return ('ClearanceOfficer','CourseAdviser','SectionManager')
    1515
  • WAeUP_SRP/trunk/skins/waeup_default/isStaff.py

    r903 r911  
    1616return "Manager" in roles or\
    1717       "SectionManager" in roles or\
     18       "SectionOfficer" in roles or\
    1819       "ClearanceOfficer" in roles or\
    1920       "ClearanceOfficers" in member.getGroups()
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_document_view.pt

    r805 r911  
    11<metal:html tal:define="info context/getDocumentInfo;
    22                        s_info context/getStudentInfo;
    3                         is_manager info/is_manager|nothing;"
     3                        is_so info/is_so|nothing;"
    44            >
    55  <metal:body use-macro="here/waeup_content_master/macros/master">
     
    1111      </a>
    1212      <h3>
    13          <span tal:condition="python:is_manager and s_info">
     13         <span tal:condition="python:is_so and s_info">
    1414           <span tal:content="s_info/student/Title" />:
    1515         </span>
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt

    r903 r911  
    88           form_type string:waeup;
    99           creation python:False;
    10            edition python:True;
     10           is_allowed context/isSectionOfficer
    1111           metadata metadata|nothing;
    1212           ">
     
    1515 
    1616  <metal:block fill-slot="header">
    17     <span tal:condition="not: context/isSectionManager">
     17    <span tal:condition="not: is_allowed">
    1818        <metal:block use-macro="here/error_not_found/macros/not_found" />
    1919    </span>
    20     <span tal:condition="context/isSectionManager">
     20    <span tal:condition="is_allowed">
    2121    <h3 tal:condition="creation" i18n:translate="">
    2222      Create a document of type
     
    3333    </a>
    3434    <h3>
    35       <tal:block condition="python: edition and not metadata"
     35      <tal:block condition="not: metadata"
    3636        i18n:translate="">Edit <span id="page_title" i18n:name="title"
    3737        tal:content="here/title_or_id">Page Title</span>
     
    4747 
    4848 
    49   <metal:block fill-slot="main" tal:condition="context/isSectionManager">
     49  <metal:block fill-slot="main" tal:condition="is_allowed">
    5050    <form action="waeup_edit" method="post" id="editForm"
    5151          enctype="multipart/form-data" class="workflow"
Note: See TracChangeset for help on using the changeset viewer.