EduploneExam_QOrder/questions OrderQuestion.py,1.2,1.3

Claudia Disque <[email protected]> Sun, 13 Nov 2005 15:04:29 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneExam_QOrder/questions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30783/questions

Modified Files:
	OrderQuestion.py 
Log Message:
changed i18n domain and added translations

Index: OrderQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam_QOrder/questions/OrderQuestion.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** OrderQuestion.py	26 Sep 2005 07:05:35 -0000	1.2
--- OrderQuestion.py	13 Nov 2005 15:04:27 -0000	1.3
***************
*** 3,7 ****
  # Copyright (c) 2005 by eduplone Open Source Business Network EEIG, contributed
  # by FH-Aargau, Switzerland and JanusProjekte GmbH, Germany
! # Generator: ArchGenXML Version 1.4.0-beta2 devel 
  #            http://plone.org/products/archgenxml
  #
--- 3,7 ----
  # Copyright (c) 2005 by eduplone Open Source Business Network EEIG, contributed
  # by FH-Aargau, Switzerland and JanusProjekte GmbH, Germany
! # Generator: ArchGenXML Version 1.4.0-RC1 
  #            http://plone.org/products/archgenxml
  #
***************
*** 109,124 ****
          responseObj.setResponseValues(**kw)
          
-         #now calculate and set score
-         possibleCorrect=len(answerObjects) #is not the case for i.e. maching
-         if self.getStrict():
-             if possibleCorrect == correctCounter:
-                 score=self.getMaxScore()
-             else:
-                 score=0
-         else:
-             score=float(self.getMaxScore()) / possibleCorrect * correctCounter
-         
-         responseObj.setScore(score)
- 
  
  
--- 109,112 ----



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php