EduploneExam/questions FillGapQuestion.py,1.28.2.2,1.28.2.3
Nils Haagen <[email protected]> Wed, 26 Oct 2005 13:56:47 +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-serv24614/questions
Modified Files:
Tag: exam-1_1
FillGapQuestion.py
Log Message:
score gets calculated now
Index: FillGapQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FillGapQuestion.py,v
retrieving revision 1.28.2.2
retrieving revision 1.28.2.3
diff -C2 -d -r1.28.2.2 -r1.28.2.3
*** FillGapQuestion.py 3 Oct 2005 15:34:17 -0000 1.28.2.2
--- FillGapQuestion.py 26 Oct 2005 13:56:45 -0000 1.28.2.3
***************
*** 37,40 ****
--- 37,49 ----
schema=Schema((
+ BooleanField('strict',
+ widget=BooleanWidget(
+ label='Strict',
+ label_msgid='EduploneExam_label_strict',
+ description_msgid='EduploneExam_help_strict',
+ i18n_domain='EduploneExam',
+ )
+ ),
+
TextField('basetext',
widget=TextAreaWidget(
***************
*** 72,76 ****
allowed_content_types = ['ChoiceGapAnswer', 'BlindGapAnswer'] + list(getattr(BaseExamQuestion, 'allowed_content_types', []))
filter_content_types = 1
! global_allow = 1
allow_discussion = 0
content_icon = 'ExamQuestion.gif'
--- 81,85 ----
allowed_content_types = ['ChoiceGapAnswer', 'BlindGapAnswer'] + list(getattr(BaseExamQuestion, 'allowed_content_types', []))
filter_content_types = 1
! global_allow = 0
allow_discussion = 0
content_icon = 'ExamQuestion.gif'
***************
*** 134,143 ****
else:
##??? what's that:
! print self.getMaxScore()
! print possibleCorrect
! print correctCounter
! score=float(1)
! #score=float(self.getMaxScore()) / possibleCorrect * correctCounter
responseObj.setScore(score)
--- 143,152 ----
else:
##??? what's that:
! #print self.getMaxScore()
! #print possibleCorrect
! #print correctCounter
! #score=float(1)
! score=float(self.getMaxScore()) / possibleCorrect * correctCounter
responseObj.setScore(score)
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information