EduploneExam/skins/EduploneExam exam_fillgap.pt,1.7,1.8 exam_fillgap_process.cpy,1.2,1.3 exam_freetext.pt,1.5,1.6 exam_matching.pt,1.8,1.9 exam_math.pt,1.6,1.7 exam_multiplechoice.pt,1.12,1.13 exam_singlechoice.pt,1.10,1.11 exam_texttask.pt,1.5,1.6 exam_truefalse.pt,1.10,1.11
"Fabian K." <[email protected]> Sun, 11 Sep 2005 14:03:45 +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-serv735
Modified Files:
exam_fillgap.pt exam_fillgap_process.cpy exam_freetext.pt
exam_matching.pt exam_math.pt exam_multiplechoice.pt
exam_singlechoice.pt exam_texttask.pt exam_truefalse.pt
Log Message:
Made results code for each question even more beautiful
Index: exam_fillgap_process.cpy
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap_process.cpy,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** exam_fillgap_process.cpy 2 Apr 2005 21:21:43 -0000 1.2
--- exam_fillgap_process.cpy 11 Sep 2005 14:03:41 -0000 1.3
***************
*** 49,51 ****
# Return to fillgap task
! request.RESPONSE.redirect("%s" % context.absolute_url())
\ No newline at end of file
--- 49,51 ----
# Return to fillgap task
! request.RESPONSE.redirect("%s" % context.absolute_url())
Index: exam_math.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_math.pt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** exam_math.pt 10 Sep 2005 18:24:08 -0000 1.6
--- exam_math.pt 11 Sep 2005 14:03:42 -0000 1.7
***************
*** 52,62 ****
</span>
</td>
! <td>
! <span tal:condition="python:currentQuestion.contentValues()"
! tal:define="answer python:currentQuestion.contentValues()[0]">
!
! <span tal:content="structure python: test(answer.processValue(responseObj[currentQuestion.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
!
! </span>
</td>
--- 52,59 ----
</span>
</td>
! <td tal:condition="python: currentQuestion.contentValues()"
! tal:define="answer python: currentQuestion.contentValues()[0];
! imgsrc python: test(answer.processValue(responseObj[currentQuestion.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
</td>
Index: exam_texttask.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_texttask.pt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** exam_texttask.pt 10 Sep 2005 18:24:08 -0000 1.5
--- exam_texttask.pt 11 Sep 2005 14:03:42 -0000 1.6
***************
*** 49,56 ****
</tal:condition>
</td>
!
! <td><tal:condition tal:condition="python:len(currentQuestion.contentValues()) > 0">
! <i tal:content="structure python: test(currentQuestion.contentValues()[0].processValue(responseObj[currentQuestion.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
! </tal:condition>
</td>
</tr>
--- 49,56 ----
</tal:condition>
</td>
! <td tal:condition="python: currentQuestion.contentValues()"
! tal:define="answer python: currentQuestion.contentValues()[0];
! imgsrc python: test(answer.processValue(responseObj[currentQuestion.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
</td>
</tr>
Index: exam_fillgap.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap.pt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** exam_fillgap.pt 10 Sep 2005 18:24:08 -0000 1.7
--- exam_fillgap.pt 11 Sep 2005 14:03:41 -0000 1.8
***************
*** 95,99 ****
<td tal:condition="python: answer.portal_type == 'ChoiceGapAnswer'"
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>
--- 95,101 ----
<td tal:condition="python: answer.portal_type == 'ChoiceGapAnswer'"
tal:content="python: answer.getCorrect()" />
! <td tal:define="imgsrc python: test(answer.processValue(responseObj[answer.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
! </td>
</tr>
Index: exam_singlechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_singlechoice.pt,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** exam_singlechoice.pt 10 Sep 2005 18:24:08 -0000 1.10
--- exam_singlechoice.pt 11 Sep 2005 14:03:42 -0000 1.11
***************
*** 66,70 ****
checked python:test(responseObj[answer.UID()], 'checked', None)" />
</td>
! <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
</tr>
--- 66,72 ----
checked python:test(responseObj[answer.UID()], 'checked', None)" />
</td>
! <td tal:define="imgsrc python: test(answer.processValue(responseObj[answer.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
! </td>
</tr>
Index: exam_matching.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_matching.pt,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** exam_matching.pt 10 Sep 2005 18:24:08 -0000 1.8
--- exam_matching.pt 11 Sep 2005 14:03:42 -0000 1.9
***************
*** 83,87 ****
<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>')" />
</tal:condition>
--- 83,89 ----
<td tal:content="python: answer.getCorrect()" />
! <td tal:define="imgsrc python: test(answer.processValue(responseObj[answer.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
! </td>
</tal:condition>
Index: exam_freetext.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_freetext.pt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** exam_freetext.pt 9 Jun 2005 09:21:52 -0000 1.5
--- exam_freetext.pt 11 Sep 2005 14:03:42 -0000 1.6
***************
*** 36,43 ****
<dd tal:content="python: currentQuestion.getExemplar()" />
- <!--span tal:condition="python:len(currentQuestion.contentValues()) > 0">
-
- </span-->
-
</div>
--- 36,39 ----
Index: exam_multiplechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_multiplechoice.pt,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** exam_multiplechoice.pt 10 Sep 2005 18:24:08 -0000 1.12
--- exam_multiplechoice.pt 11 Sep 2005 14:03:42 -0000 1.13
***************
*** 73,77 ****
checked python:test(responseObj[answer.UID()]=='on','checked', None)" />
</td>
! <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
</tr>
--- 73,79 ----
checked python:test(responseObj[answer.UID()]=='on','checked', None)" />
</td>
! <td tal:define="imgsrc python: test(answer.processValue(responseObj[answer.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
! </td>
</tr>
Index: exam_truefalse.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_truefalse.pt,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** exam_truefalse.pt 10 Sep 2005 18:24:08 -0000 1.10
--- exam_truefalse.pt 11 Sep 2005 14:03:42 -0000 1.11
***************
*** 85,89 ****
</td>
! <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
--- 85,91 ----
</td>
! <td tal:define="imgsrc python: test(answer.processValue(responseObj[answer.UID()]), 'right_answer.gif', 'wrong_answer.gif')">
! <img tal:attributes="src imgsrc" />
! </td>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf