EduploneExam/skins/EduploneExam exam_multiplechoice.pt,1.4,1.5 exam_singlechoice.pt,1.2,1.3 exam_truefalse.pt,1.2,1.3
Nils Haagen <[email protected]>
| 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-serv3229/skins/EduploneExam
Modified Files:
exam_multiplechoice.pt exam_singlechoice.pt exam_truefalse.pt
Log Message:
templates with eval-macro; don't look nice/work properly, yet, but don't crash anymore. Property 'exemplar' moved from FreeTextAnswer to FreeTextQuestion
Index: exam_truefalse.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_truefalse.pt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** exam_truefalse.pt 17 Dec 2004 09:47:56 -0000 1.2
--- exam_truefalse.pt 18 Dec 2004 14:04:26 -0000 1.3
***************
*** 6,10 ****
<h2 tal:content="currentQuestion/title" />
! <bR>
<b tal:content="structure python:currentQuestion.getQuestion()" />
<br/>
--- 6,10 ----
<h2 tal:content="currentQuestion/title" />
! <bR />
<b tal:content="structure python:currentQuestion.getQuestion()" />
<br/>
***************
*** 17,21 ****
<tr tal:repeat="answer python:currentQuestion.contentValues()">
-
<td><span tal:content="python: answer.getChallange()" /></td>
<td width="10"></td>
--- 17,20 ----
***************
*** 31,43 ****
checked python:test(responseObj[answer.UID()]=='0',
'checked', None)"/>
-
<small i18n:translate="label_incorrect">incorrect</small>
</td>
-
-
</tr>
</table>
</div>
--- 30,76 ----
checked python:test(responseObj[answer.UID()]=='0',
'checked', None)"/>
<small i18n:translate="label_incorrect">incorrect</small>
</td>
</tr>
</table>
+ </div>
+
+ </div>
+
+
+
+
+
+ <div metal:define-macro="eval"
+ tal:omit-tag="">
+
+ <div>
+
+ <h2 tal:content="currentQuestion/title" />
+ <bR />
+ <span tal:content="structure python:currentQuestion.getQuestion()" />
+
+ <br/><br/>
+
+ <table border="0"
+ tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
+
+ <tr>
+ <td>Challange</td>
+ <td>UserAnswer</td>
+ <td>correct?</td>
+ </tr>
+
+ <tr tal:repeat="answer python:currentQuestion.contentValues()">
+
+ <td tal:content="python: answer.getChallange()" />
+ <td tal:content="python: responseObj[answer.UID()]" />
+ <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
+
+
+ </tr>
+ </table>
</div>
Index: exam_singlechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_singlechoice.pt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** exam_singlechoice.pt 17 Dec 2004 09:47:56 -0000 1.2
--- exam_singlechoice.pt 18 Dec 2004 14:04:26 -0000 1.3
***************
*** 35,37 ****
--- 35,74 ----
</div>
+ </div>
+
+
+
+
+ <div metal:define-macro="eval"
+ tal:omit-tag="">
+
+ <div>
+
+ <h2 tal:content="currentQuestion/title" />
+ <bR />
+ <span tal:content="structure python:currentQuestion.getQuestion()" />
+
+ <br/><br/>
+
+ <table border="0"
+ tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
+
+ <tr>
+ <td>Challange</td>
+ <td>UserAnswer</td>
+ <td>correct?</td>
+ </tr>
+
+ <tr tal:repeat="answer python:currentQuestion.contentValues()">
+
+ <td tal:content="python: answer.getChallange()" />
+ <td tal:content="python: responseObj[answer.UID()]" />
+ <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
+
+
+ </tr>
+ </table>
+
+ </div>
+
</div>
\ No newline at end of file
Index: exam_multiplechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_multiplechoice.pt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** exam_multiplechoice.pt 16 Dec 2004 15:29:11 -0000 1.4
--- exam_multiplechoice.pt 18 Dec 2004 14:04:26 -0000 1.5
***************
*** 40,42 ****
--- 40,79 ----
</div>
+ </div>
+
+
+
+
+ <div metal:define-macro="eval"
+ tal:omit-tag="">
+
+ <div>
+
+ <h2 tal:content="currentQuestion/title" />
+ <bR>
+ <span tal:content="structure python:currentQuestion.getQuestion()" />
+
+ <br/><br/>
+
+ <table border="0"
+ tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
+
+ <tr>
+ <td>Challange</td>
+ <td>UserAnswer</td>
+ <td>correct?</td>
+ </tr>
+
+ <tr tal:repeat="answer python:currentQuestion.contentValues()">
+
+ <td tal:content="python: answer.getChallange()" />
+ <td tal:content="python: responseObj[answer.UID()]" />
+ <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
+
+
+ </tr>
+ </table>
+
+ </div>
+
</div>
\ No newline at end of file
-------------------------------------------------------
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://productguide.itmanagersjournal.com/