Changeset 1001 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
6 Dec 2006, 14:08:48 (18 years ago)
Author:
joachim
Message:

double call in raise_objection fixed (in custom)
pins_view faster (not in custom)

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_pins/pins_view.pt

    r805 r1001  
    77        <h3>PIN Batches</h3>
    88        <br />
    9         <table tal:define="batches python: context.objectValues()">
     9        <table tal:define="batches python: context.portal_catalog(portal_type='ScratchCardBatch')">
    1010          <tr tal:repeat="batch batches">
    11             <span tal:omit-tag="" tal:define="info python: context.getBatchInfo(batch)">
    1211            <td><a href="batch"
    13                    tal:attributes="href string:${batch/absolute_url}"
    14                    tal:content="info/title"></a></td>   
    15             </span>
     12                   tal:attributes="href string:${batch/getPath}"
     13                   tal:content="batch/Title"></a></td>   
    1614          </tr>
    1715        </table>
  • WAeUP_SRP/trunk/skins/waeup_student/raise_objection.py

    r891 r1001  
    2323
    2424info['app_doc'].edit(mapping={'objection_date':current,})
    25 wf.doActionFor(info['student'],'raise_objection')
    26 return context.objection_raised_form(info=info)
     25if info['review_state'] == "admitted":
     26    wf.doActionFor(info['student'],'raise_objection')
     27    return context.objection_raised_form(info=info)
     28return context.admission_form()
Note: See TracChangeset for help on using the changeset viewer.