EduploneExam/answers MatchingAnswer.py,1.4,1.5

Nils Haagen <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneExam/answers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17934/answers

Modified Files:
	MatchingAnswer.py 
Log Message:
booleanAnswerTest running - finally

Index: MatchingAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/MatchingAnswer.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** MatchingAnswer.py	14 Dec 2004 14:49:17 -0000	1.4
--- MatchingAnswer.py	14 Dec 2004 14:55:29 -0000	1.5
***************
*** 106,113 ****
      #methods from Interface IExamAnswer
  
!     def processValue(self):
          '''
          
          '''
          
          pass
--- 106,118 ----
      #methods from Interface IExamAnswer
  
!     security.declareProtected('''''','processValue')
!     def processValue(self, value=''):
          '''
          
          '''
+         if value and value == self.correct:
+             return True
+         else:
+             return False
          
          pass



-------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.