Ignore:
Timestamp:
09/14/07 10:19:58 (12 years ago)
Author:
jukka
Message:

Exercise...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ExerciseMaterial.py

    r2017 r2018  
    8282        return dump 
    8383 
     84    def isCorrectAnswer(self, chapter, answer_index): 
     85        """ given a chapter having a multiple choice question, is this answer in correct answers? """  
     86        return answer_index < len(chapter[1]) 
     87         
     88 
    8489    security.declareProtected(MODIFY_CONTENT,'delChapter') 
    8590    def delChapter(self, REQUEST): 
Note: See TracChangeset for help on using the changeset viewer.