EduploneExam/skins/EduploneExam exam_singlechoice.pt,1.13.2.5,1.13.2.6

Nils Haagen <[email protected]> Tue, 17 Jan 2006 23:32:13 +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-serv14596

Modified Files:
      Tag: exam-1_1
	exam_singlechoice.pt 
Log Message:
fixed presentation of results

Index: exam_singlechoice.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_singlechoice.pt,v
retrieving revision 1.13.2.5
retrieving revision 1.13.2.6
diff -C2 -d -r1.13.2.5 -r1.13.2.6
*** exam_singlechoice.pt	8 Jan 2006 14:01:23 -0000	1.13.2.5
--- exam_singlechoice.pt	17 Jan 2006 23:32:11 -0000	1.13.2.6
***************
*** 70,77 ****
                                         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>
          </table>        
--- 70,85 ----
                                         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')">
!             
!                 <span tal:content="python: answer.getCorrect()" /> - <span tal:content="python: responseObj[answer.UID()]" />
! 
                  <img tal:attributes="src imgsrc" />
!             </td-->
                  
+             <td>            
+                 <img src="right_answer.gif" tal:condition="python: responseObj[answer.UID()]==True and answer.getCorrect()==True" />
+                 <img src="wrong_answer.gif" tal:condition="python: (responseObj[answer.UID()]==False and answer.getCorrect()==True) or (responseObj[answer.UID()]==True and answer.getCorrect()!=True)" />
+             </td>
+ 
            </tr>
          </table>        



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642