Changeset 850 for WAeUP_SRP/trunk


Ignore:
Timestamp:
12 Nov 2006, 09:17:47 (18 years ago)
Author:
Henrik Bettermann
Message:

bug fixed: getStudentInfo is None in contexts outside StudentsFolder?

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/cpsdocument_edit_form.pt

    r847 r850  
    11<tal:block define="
    2     info context/getStudentInfo;
    32    rendered_main python:context.getContent().render(layout_mode='edit',
    43           cluster=None,
     
    109    edition python:True;
    1110    metadata metadata|nothing;
    12     is_manager info/is_manager|nothing;
    1311    ">
    1412<metal:block define-macro="edit_form">
    1513<metal:block use-macro="here/content_lib_master/macros/master">
    16 
    1714 
    1815  <metal:block fill-slot="header">
    19     <span tal:condition="not: is_manager">
     16    <span tal:condition="not: context/isManager">
    2017        <metal:block use-macro="here/error_not_found/macros/not_found" />
    2118    </span>
    22     <span tal:condition="is_manager">
     19    <span tal:condition="context/isManager">
    2320    <h3 tal:condition="creation" i18n:translate="">
    2421      Create a document of type
     
    4946 
    5047 
    51   <metal:block fill-slot="main" tal:condition="is_manager">
     48  <metal:block fill-slot="main" tal:condition="context/isManager">
    5249    <form action="ACTION" method="post" id="editForm"
    5350          enctype="multipart/form-data" class="workflow"
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form_manager.pt

    r844 r850  
    1111           creation python:False;
    1212           metadata nothing;
    13            is_manager info/is_manager|nothing;
     13           is_manager context/isManager;
    1414    ">
    15 <metal:block define-macro="edit_form">
    1615<metal:block use-macro="here/waeup_content_master/macros/master">
    1716
     
    6665 
    6766</metal:block>
    68 </metal:block>
    6967</tal:block>
Note: See TracChangeset for help on using the changeset viewer.