EduploneExam_QOrder/questions OrderQuestion.py,1.3,1.4
Nils Haagen <[email protected]> Tue, 15 Nov 2005 10:15:11 +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-serv649/questions
Modified Files:
OrderQuestion.py
Log Message:
'strict' moved away
Index: OrderQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam_QOrder/questions/OrderQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** OrderQuestion.py 13 Nov 2005 15:04:27 -0000 1.3
--- OrderQuestion.py 15 Nov 2005 10:15:09 -0000 1.4
***************
*** 53,57 ****
class OrderQuestion(BaseExamQuestion):
security = ClassSecurityInfo()
! __implements__ = (getattr(BaseExamQuestion,'__implements__',()),)
--- 53,57 ----
class OrderQuestion(BaseExamQuestion):
security = ClassSecurityInfo()
! __implements__ = (getattr(BaseExamQuestion,'__implements__',()),) #+ (getattr(BaseFolder,'__implements__',()),)
***************
*** 109,113 ****
responseObj.setResponseValues(**kw)
!
registerType(OrderQuestion,PROJECTNAME)
--- 109,126 ----
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
!
! examFolder=self.aq_parent
! if examFolder.getParam_storageMethod()=='eXamFolder':
! examFolder.storeResponseAttr(self.UID(), responseObj)
!
registerType(OrderQuestion,PROJECTNAME)
-------------------------------------------------------
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. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click