EduploneExam/questions SingleChoiceQuestion.py,1.26.2.4,1.26.2.5
Nils Haagen <[email protected]> Sun, 08 Jan 2006 01:47:21 +0000
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/questions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4501/questions
Modified Files:
Tag: exam-1_1
SingleChoiceQuestion.py
Log Message:
fixed singlechoice score
Index: SingleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/SingleChoiceQuestion.py,v
retrieving revision 1.26.2.4
retrieving revision 1.26.2.5
diff -C2 -d -r1.26.2.4 -r1.26.2.5
*** SingleChoiceQuestion.py 13 Nov 2005 15:19:40 -0000 1.26.2.4
--- SingleChoiceQuestion.py 8 Jan 2006 01:47:18 -0000 1.26.2.5
***************
*** 1,5 ****
# File: SingleChoiceQuestion.py
#
! # Copyright (c) 2005 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
# Generator: ArchGenXML Version 1.4.0-RC1
--- 1,5 ----
# File: SingleChoiceQuestion.py
#
! # Copyright (c) 2006 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
# Generator: ArchGenXML Version 1.4.0-RC1
***************
*** 106,111 ****
#now calculate and set score
! possibleCorrect=len(answerObjects) #is not the case for i.e. maching
! score=float(self.getMaxScore()) / possibleCorrect * correctCounter
responseObj.setScore(score)
--- 106,114 ----
#now calculate and set score
!
! if correctCounter>0:
! score=self.getMaxScore()
! else:
! score=0
responseObj.setScore(score)
-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click