EduploneExam/skins/EduploneExam exam_fillgap.pt,1.3,1.4
Nils Haagen <[email protected]> Fri, 08 Apr 2005 09:18:16 +0000
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/skins/EduploneExam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3973/skins/EduploneExam
Modified Files:
exam_fillgap.pt
Log Message:
generated with ArchGen_1.4, +fillgap
Index: exam_fillgap.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap.pt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** exam_fillgap.pt 2 Apr 2005 21:21:43 -0000 1.3
--- exam_fillgap.pt 8 Apr 2005 09:18:14 -0000 1.4
***************
*** 20,23 ****
--- 20,24 ----
<select tal:condition="python: answerObject.portal_type=='ChoiceGapAnswer'"
tal:attributes="name python:'##'.join([currentQuestion.UID(), answerObject.UID()]);">
+ <option></option>
<option tal:repeat="answer python: answerObject.getCleanOptions()"
tal:attributes="value answer;
***************
*** 48,54 ****
<div metal:use-macro="here/exam_questionHeader/macros/evalHeader" />
! no result view for FillGap, yet
</div>
--- 49,101 ----
<div metal:use-macro="here/exam_questionHeader/macros/evalHeader" />
+
+ <tal:repeat repeat="word python: currentQuestion.getBasetextAsList()">
+ <tal:isGap tal:condition="python: word.startswith('<id=\'') and word.endswith('\'>')">
+ <tal:def tal:define="answerId python:word[5:-2];
+ answerObject python:currentQuestion[answerId];">
+ <input tal:condition="python: answerObject.portal_type=='BlindGapAnswer'"
+ tal:attributes="disabled string:disabled;
+ type string:text;
+ value python:responseObj[answerObject.UID()];" />
! <select tal:condition="python: answerObject.portal_type=='ChoiceGapAnswer'"
! tal:attributes="disabled string:disabled">
!
! <option tal:content="python: responseObj[answerObject.UID()]" />
! </select>
!
! </tal:def>
! </tal:isGap>
!
! <tal:isNotGap tal:condition="python: word.startswith('<id=\'')==False and word.endswith('\'>')==False"
! tal:omit-tag
! tal:replace="word" />
!
! </tal:repeat>
!
!
!
! <table border="0"
! class="listing"
! summary="user result">
!
! <thead>
! <tr>
! <th i18n:translate="label_useranswer">user answer</th>
! <th i18n:translate="label_correctanswer">correct answer</th>
! <th i18n:translate="label_is_this_correct">correct?</th>
! </tr>
! </thead>
!
! <tr tal:repeat="answer python:currentQuestion.contentValues()">
! <td tal:content="python: responseObj[answer.UID()]" />
! <td tal:content="python: answer.getCorrect()" />
! <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
! </tr>
!
! </table>
!
!
</div>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click