Ignore:
Timestamp:
17 Jun 2012, 07:09:21 (13 years ago)
Author:
Henrik Bettermann
Message:

Replace getStudent method by a 'student' attribute.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r8548 r8736  
    282282        """
    283283        if IStudentNavigation.providedBy(self.context):
    284             return self.context.getStudent().display_fullname
     284            return self.context.student.display_fullname
    285285        return
    286286
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/staffsitelayout.pt

    r8458 r8736  
    6161        tal:condition="layout/getStudentName" class="wfstatus">
    6262          <span i18n:translate="">Student Id:</span>
    63           <span tal:replace="python:context.getStudent().student_id">
     63          <span tal:replace="python:context.student.student_id">
    6464            ID
    6565          </span>&nbsp;&nbsp;
    6666          <span i18n:translate="">State:</span>
    67           <span tal:replace="python:context.getStudent().translated_state">
     67          <span tal:replace="python:context.student.translated_state">
    6868            STATE
    6969          </span>
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/studentsitelayout.pt

    r8458 r8736  
    6464              tal:content="structure provider:breadcrumbs" />
    6565        <span tal:condition="layout/getStudentName" class="wfstatus">
    66             <span tal:replace="python:context.getStudent().student_id">
     66            <span tal:replace="python:context.student.student_id">
    6767              Id
    6868            </span>
    6969            |
    70             <span tal:replace="python:context.getStudent().translated_state">
     70            <span tal:replace="python:context.student.translated_state">
    7171              State
    7272            </span>
Note: See TracChangeset for help on using the changeset viewer.