EduploneExam/questions BaseExamQuestion.py,1.30.2.10,1.30.2.11 MatchingQuestion.py,1.26.2.6,1.26.2.7 TrueFalseQuestion.py,1.26.2.7,1.26.2.8
"Fabian K." <[email protected]> Sat, 04 Mar 2006 17:41:07 +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-serv25541/questions
Modified Files:
Tag: exam-1_1
BaseExamQuestion.py MatchingQuestion.py TrueFalseQuestion.py
Log Message:
Added exam_folder_contents view, build 68.
Index: TrueFalseQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TrueFalseQuestion.py,v
retrieving revision 1.26.2.7
retrieving revision 1.26.2.8
diff -C2 -d -r1.26.2.7 -r1.26.2.8
*** TrueFalseQuestion.py 3 Mar 2006 23:19:14 -0000 1.26.2.7
--- TrueFalseQuestion.py 4 Mar 2006 17:41:04 -0000 1.26.2.8
***************
*** 75,80 ****
allow_discussion = 0
content_icon = 'ExamQuestion.gif'
! immediate_view = 'question_view'
! default_view = 'question_view'
suppl_views = ()
typeDescription = "TrueFalseQuestion"
--- 75,80 ----
allow_discussion = 0
content_icon = 'ExamQuestion.gif'
! immediate_view = 'base_view'
! default_view = 'base_view'
suppl_views = ()
typeDescription = "TrueFalseQuestion"
Index: MatchingQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MatchingQuestion.py,v
retrieving revision 1.26.2.6
retrieving revision 1.26.2.7
diff -C2 -d -r1.26.2.6 -r1.26.2.7
*** MatchingQuestion.py 8 Jan 2006 14:01:22 -0000 1.26.2.6
--- MatchingQuestion.py 4 Mar 2006 17:41:04 -0000 1.26.2.7
***************
*** 104,107 ****
--- 104,115 ----
+
+ security.declarePublic('operation_1')
+ def operation_1(self):
+ """
+
+ """
+
+
#manually created methods
Index: BaseExamQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/BaseExamQuestion.py,v
retrieving revision 1.30.2.10
retrieving revision 1.30.2.11
diff -C2 -d -r1.30.2.10 -r1.30.2.11
*** BaseExamQuestion.py 3 Mar 2006 23:19:14 -0000 1.30.2.10
--- BaseExamQuestion.py 4 Mar 2006 17:41:04 -0000 1.30.2.11
***************
*** 123,127 ****
'permissions': ("View",),
'condition' : 'python:1'
! },
)
##/code-section class-header
--- 123,127 ----
'permissions': ("View",),
'condition' : 'python:1'
! },
)
##/code-section class-header
***************
*** 194,198 ****
--- 194,207 ----
random.shuffle(randomizedValues)
return randomizedValues
+
+ def getQuestionIntroduction(self, word_count=7):
+ """ """
+ question_list = self.getQuestion().split()
+ if len(question_list) <= word_count:
+ return self.getQuestion()
+ else:
+ return "%s..." % " ".join(question_list[0:word_count])
+
def _lookupUID(self, uid):
***************
*** 205,211 ****
else:
return None
!
!
!
# end of class BaseExamQuestion
--- 214,224 ----
else:
return None
!
!
! def foo(self):
! """ """
! return "jo"
!
!
# end of class BaseExamQuestion
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642