EduploneExam/questions FreeTextQuestion.py,1.26.2.5,1.26.2.6

Nils Haagen <[email protected]> Thu, 02 Feb 2006 20:04: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-serv18311/questions

Modified Files:
      Tag: exam-1_1
	FreeTextQuestion.py 
Log Message:
fixed getStrict() - Bug for freetext-question

Index: FreeTextQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FreeTextQuestion.py,v
retrieving revision 1.26.2.5
retrieving revision 1.26.2.6
diff -C2 -d -r1.26.2.5 -r1.26.2.6
*** FreeTextQuestion.py	8 Jan 2006 14:01:22 -0000	1.26.2.5
--- FreeTextQuestion.py	2 Feb 2006 20:04:19 -0000	1.26.2.6
***************
*** 115,126 ****
              #now calculate score
              possibleCorrect=len(answerObjects)
!             if self.getStrict():
!                 if possibleCorrect == correctCounter:
!                     score=self.getMaxScore()
!                 else:
!                     score=0
!             else:
!                 score=float(self.getMaxScore()) / possibleCorrect * correctCounter
!                     
                  
          #fill in actual user-input as answer and set score
--- 115,126 ----
              #now calculate score
              possibleCorrect=len(answerObjects)
!             #if self.getStrict():
!             #    if possibleCorrect == correctCounter:
!             #        score=self.getMaxScore()
!             #    else:
!             #        score=0
!             #else:
!             #    score=float(self.getMaxScore()) / possibleCorrect * correctCounter
!             score=float(self.getMaxScore()) / possibleCorrect * correctCounter                    
                  
          #fill in actual user-input as answer and set 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642