Ignore:
Timestamp:
26 Nov 2011, 06:55:44 (13 years ago)
Author:
Henrik Bettermann
Message:

tal:condition="view/department" does not work in pagetemplates because the boolean value of view/department is always False, even if it exists, since there are no items in the department container. Also the boolean value of view/certificate might be False if there are no certificatecourses in the certificate container. bool is associated with the len of the container which is the number of subobjects by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursepage.pt

    r7189 r7206  
    3232      </td>
    3333    </tr>
    34     <tr tal:condition="view/context/certificate">
     34    <tr tal:condition="python: view.department is not None">
    3535      <td>
    3636        <label>
     
    4545      </td>
    4646    </tr>
    47     <tr tal:condition="view/context/certificate">
     47    <tr tal:condition="python: view.faculty is not None">
    4848      <td>
    4949        <label>
Note: See TracChangeset for help on using the changeset viewer.