EduploneExam/questions FillGapQuestion.py,1.28,1.29
Thomas Zeleny <[email protected]> Wed, 19 Oct 2005 14:43:12 +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-serv28116/questions
Modified Files:
FillGapQuestion.py
Log Message:
save fallback if the is no gap 0 is returned otherwise an errore is caused because empty string can't be converted to an int
Index: FillGapQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FillGapQuestion.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** FillGapQuestion.py 19 Sep 2005 06:42:52 -0000 1.28
--- FillGapQuestion.py 19 Oct 2005 14:43:10 -0000 1.29
***************
*** 95,99 ****
if word=="<id='%s'>" % gapId:
return counter
! counter += 1
def isGap(self, gapId):
--- 95,100 ----
if word=="<id='%s'>" % gapId:
return counter
! counter += 1
! return 0
def isGap(self, gapId):
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl