EduploneExam/questions BaseExamQuestion.py,1.22,1.23 FillGapQuestion.py,1.17,1.18 FreeTextQuestion.py,1.18,1.19 MatchingQuestion.py,1.18,1.19 MathQuestion.py,1.18,1.19 MultipleChoiceQuestion.py,1.18,1.19 SingleChoiceQuestion.py,1.18,1.19 TextTaskQuestion.py,1.18,1.19 TrueFalseQuestion.py,1.18,1.19
Nils Haagen <[email protected]>
| 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-serv24000/questions
Modified Files:
BaseExamQuestion.py FillGapQuestion.py FreeTextQuestion.py
MatchingQuestion.py MathQuestion.py MultipleChoiceQuestion.py
SingleChoiceQuestion.py TextTaskQuestion.py
TrueFalseQuestion.py
Log Message:
user-interfaces for (allmost) every question - fillgap still missing....
Index: FreeTextQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FreeTextQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** FreeTextQuestion.py 16 Dec 2004 15:18:26 -0000 1.18
--- FreeTextQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 106,110 ****
#fill in actual user-input as answer and set score
! responseObj.setResponseValues(kw)
responseObj.setScore(score)
--- 106,110 ----
#fill in actual user-input as answer and set score
! responseObj.setResponseValues(**kw)
responseObj.setScore(score)
Index: FillGapQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FillGapQuestion.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** FillGapQuestion.py 16 Dec 2004 15:18:26 -0000 1.17
--- FillGapQuestion.py 17 Dec 2004 09:47:56 -0000 1.18
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: TrueFalseQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TrueFalseQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** TrueFalseQuestion.py 16 Dec 2004 15:18:27 -0000 1.18
--- TrueFalseQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 95,103 ****
#process Answer (see, if correct and increase counter if so)
! if self[awUId].processValue(kw[awUId]):
correctCounter += 1
#fill in actual user-input as answers
! responseObj.setResponseValues(kw)
#now calculate and set score
--- 95,104 ----
#process Answer (see, if correct and increase counter if so)
! answer=self._lookupUID(awUId)
! if answer.processValue(kw[awUId]):
correctCounter += 1
#fill in actual user-input as answers
! responseObj.setResponseValues(**kw)
#now calculate and set score
Index: MathQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MathQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** MathQuestion.py 16 Dec 2004 15:18:27 -0000 1.18
--- MathQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 95,106 ****
#with a text/math-input, answers are not mandatory
if len(answerObjects)>0:
! answerObject=answerObjects[1]
possibleCorrect=1
#process Answer (see, if correct)
! if answerObject.processValue(kw[sUID]):
! score=self.getMaxScore()
!
#fill in actual user-input as answer and set score
! responseObj.setResponseValues(kw)
responseObj.setScore(score)
--- 95,108 ----
#with a text/math-input, answers are not mandatory
if len(answerObjects)>0:
! answerObject=answerObjects[0]
possibleCorrect=1
#process Answer (see, if correct)
! try:
! if answerObject.processValue(kw[sUID]):
! score=self.getMaxScore()
! except:
! score=0
#fill in actual user-input as answer and set score
! responseObj.setResponseValues(**kw)
responseObj.setScore(score)
Index: MatchingQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MatchingQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** MatchingQuestion.py 16 Dec 2004 15:18:26 -0000 1.18
--- MatchingQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 95,103 ****
#process Answer (see, if correct and increase counter if so)
! if self[awUId].processValue(kw[awUId]):
correctCounter += 1
#fill in actual user-input as answers
! responseObj.setResponseValues(kw)
#now calculate and set score
--- 95,104 ----
#process Answer (see, if correct and increase counter if so)
! answer=self._lookupUID(awUId)
! if answer.processValue(kw[awUId]):
correctCounter += 1
#fill in actual user-input as answers
! responseObj.setResponseValues(**kw)
#now calculate and set score
Index: TextTaskQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TextTaskQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** TextTaskQuestion.py 16 Dec 2004 15:18:27 -0000 1.18
--- TextTaskQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 95,99 ****
#with a text-input, answers are not mandatory
if len(answerObjects)>0:
! answerObject=answerObjects[1]
possibleCorrect=1
#process Answer (see, if correct)
--- 95,99 ----
#with a text-input, answers are not mandatory
if len(answerObjects)>0:
! answerObject=answerObjects[0]
possibleCorrect=1
#process Answer (see, if correct)
***************
*** 102,106 ****
#fill in actual user-input as answer and set score
! responseObj.setResponseValues(kw)
responseObj.setScore(score)
--- 102,106 ----
#fill in actual user-input as answer and set score
! responseObj.setResponseValues(**kw)
responseObj.setScore(score)
Index: SingleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/SingleChoiceQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** SingleChoiceQuestion.py 16 Dec 2004 15:18:27 -0000 1.18
--- SingleChoiceQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 95,103 ****
#process Answer (see, if correct and increase counter if so)
! if self[awUId].processValue(kw[awUId]):
correctCounter += 1
#fill in actual user-input as answers
! responseObj.setResponseValues(kw)
#now calculate and set score
--- 95,104 ----
#process Answer (see, if correct and increase counter if so)
! answer=self._lookupUID(awUId)
! if answer.processValue(kw[awUId]):
correctCounter += 1
#fill in actual user-input as answers
! responseObj.setResponseValues(**kw)
#now calculate and set score
Index: MultipleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MultipleChoiceQuestion.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** MultipleChoiceQuestion.py 16 Dec 2004 15:18:27 -0000 1.18
--- MultipleChoiceQuestion.py 17 Dec 2004 09:47:56 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: BaseExamQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/BaseExamQuestion.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** BaseExamQuestion.py 16 Dec 2004 15:18:26 -0000 1.22
--- BaseExamQuestion.py 17 Dec 2004 09:47:56 -0000 1.23
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 16:17:23 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Thu Dec 16 20:58:00 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/