Changeset 3817


Ignore:
Timestamp:
15 Dec 2008, 14:51:19 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve ticket Uniben #594 (untested)

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r3812 r3817  
    763763    ###)
    764764
     765
     766    security.declarePublic('getOfficerName') ###(
     767    def getOfficerName(self,mid):
     768        """get the real name of a member"""
     769        membership = self.portal_membership
     770        member_record = membership.getMemberById(mid)
     771        return member_record.getProperty('fullname',None)
     772    ###)
     773
     774
    765775    security.declarePublic('makeStudentMember') ###(
    766776    def makeStudentMember(self,sid,password='uNsEt'):
  • WAeUP_SRP/trunk/skins/waeup_layout/layout_clearance_view.pt

    r3814 r3817  
    4545    </span>
    4646
    47     <span  tal:define="mtool here/portal_membership;
    48                        co_id context/clearance_officer|nothing;"
     47    <span  tal:define="co_id context/clearance_officer|nothing;"
    4948           tal:condition="co_id">
    50         <tr tal:define="co_member python:mtool.getMemberById(co_id);">
     49        <tr tal:define="co_member python:context.waeup_tool.getOfficerName(co_id);">
    5150          <td>Cleared By:</td>
    52           <td><span tal:content="python:co_member.getProperty('fullname',None)" /></td>
     51          <td><span tal:content="co_member" /></td>
    5352        </tr>
    5453    </span>
Note: See TracChangeset for help on using the changeset viewer.