EduploneExam/questions BaseExamQuestion.py,1.13,1.14 FillGapQuestion.py,1.12,1.13 FreeTextQuestion.py,1.12,1.13 MatchingQuestion.py,1.12,1.13 MathQuestion.py,1.12,1.13 MultipleChoiceQuestion.py,1.12,1.13 SingleChoiceQuestion.py,1.12,1.13 TextTaskQuestion.py,1.12,1.13 TrueFalseQuestion.py,1.12,1.13
Nils Haagen <[email protected]>
| 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-serv8840/questions
Modified Files:
BaseExamQuestion.py FillGapQuestion.py FreeTextQuestion.py
MatchingQuestion.py MathQuestion.py MultipleChoiceQuestion.py
SingleChoiceQuestion.py TextTaskQuestion.py
TrueFalseQuestion.py
Log Message:
aligned responseObject/deliver/process
Index: FreeTextQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FreeTextQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** FreeTextQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- FreeTextQuestion.py 15 Dec 2004 12:24:46 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:56 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 77,87 ****
#Methods
! def processResponse(self):
'''
!
'''
!
! responseObj=deliverResponse(self.UID())
!
--- 77,85 ----
#Methods
! def processResponse(self, REQUEST):
'''
!
'''
! responseObj=BaseExamQuestion.processResponse(self, REQUEST)
***************
*** 92,96 ****
#'content_icon':'FreeTextQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 90,94 ----
#'content_icon':'FreeTextQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: FillGapQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FillGapQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** FillGapQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- FillGapQuestion.py 15 Dec 2004 12:24:46 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:56 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 84,88 ****
#'content_icon':'FillGapQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 84,88 ----
#'content_icon':'FillGapQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: TrueFalseQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TrueFalseQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TrueFalseQuestion.py 15 Dec 2004 11:32:27 -0000 1.12
--- TrueFalseQuestion.py 15 Dec 2004 12:25:02 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:56 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 84,88 ****
#'content_icon':'TrueFalseQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 84,88 ----
#'content_icon':'TrueFalseQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: MathQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MathQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** MathQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- MathQuestion.py 15 Dec 2004 12:24:46 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:57 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 84,88 ****
#'content_icon':'MathQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 84,88 ----
#'content_icon':'MathQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: MatchingQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MatchingQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** MatchingQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- MatchingQuestion.py 15 Dec 2004 12:24:46 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:57 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 84,88 ****
#'content_icon':'MatchingQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 84,88 ----
#'content_icon':'MatchingQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: TextTaskQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TextTaskQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TextTaskQuestion.py 15 Dec 2004 11:32:27 -0000 1.12
--- TextTaskQuestion.py 15 Dec 2004 12:25:02 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:57 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 84,88 ****
#'content_icon':'TextTaskQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 84,88 ----
#'content_icon':'TextTaskQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: SingleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/SingleChoiceQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** SingleChoiceQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- SingleChoiceQuestion.py 15 Dec 2004 12:24:46 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:56 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 84,88 ****
#'content_icon':'SingleChoiceQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 84,88 ----
#'content_icon':'SingleChoiceQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: MultipleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MultipleChoiceQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** MultipleChoiceQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- MultipleChoiceQuestion.py 15 Dec 2004 12:24:46 -0000 1.13
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:56 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 87,91 ****
#'content_icon':'MultipleChoiceQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':0,
'filter_content_types':1,
}
--- 87,91 ----
#'content_icon':'MultipleChoiceQuestion.gif',
'immediate_view':'base_view',
! 'global_allow':1,
'filter_content_types':1,
}
Index: BaseExamQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/BaseExamQuestion.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** BaseExamQuestion.py 15 Dec 2004 12:11:43 -0000 1.13
--- BaseExamQuestion.py 15 Dec 2004 12:24:46 -0000 1.14
***************
*** 8,16 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:56 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
# GNU General Public Licence (GPL)
! #
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
--- 8,16 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 13:13:25 2004
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
# GNU General Public Licence (GPL)
! #
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
***************
*** 43,49 ****
class BaseExamQuestion(BaseContent):
security = ClassSecurityInfo()
! portal_type = meta_type = 'BaseExamQuestion'
! archetype_name = 'BaseExamQuestion' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(BaseContent,'__implements__',()) + (IExamNotifier,IExamQuestion,)
--- 43,49 ----
class BaseExamQuestion(BaseContent):
security = ClassSecurityInfo()
! portal_type = meta_type = 'BaseExamQuestion'
! archetype_name = 'BaseExamQuestion' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(BaseContent,'__implements__',()) + (IExamNotifier,IExamQuestion,)
***************
*** 61,65 ****
),
),
!
StringField('title',
accessor='''Title''',
--- 61,65 ----
),
),
!
StringField('title',
accessor='''Title''',
***************
*** 72,76 ****
),
),
!
TextField('question',
widget=TextAreaWidget(description='Enter a value for question.',
--- 72,76 ----
),
),
!
TextField('question',
widget=TextAreaWidget(description='Enter a value for question.',
***************
*** 81,85 ****
),
),
!
TextField('instruction',
widget=TextAreaWidget(description='Enter a value for instruction.',
--- 81,85 ----
),
),
!
TextField('instruction',
widget=TextAreaWidget(description='Enter a value for instruction.',
***************
*** 90,94 ****
),
),
!
IntegerField('maxScore',
widget=IntegerWidget(description='Enter a value for maxScore.',
--- 90,94 ----
),
),
!
IntegerField('maxScore',
widget=IntegerWidget(description='Enter a value for maxScore.',
***************
*** 99,103 ****
),
),
!
BooleanField('strict',
widget=BooleanWidget(description='Enter a value for strict.',
--- 99,103 ----
),
),
!
BooleanField('strict',
widget=BooleanWidget(description='Enter a value for strict.',
***************
*** 108,112 ****
),
),
!
ImageField('picture',
storage=AttributeStorage(),
--- 108,112 ----
),
),
!
ImageField('picture',
storage=AttributeStorage(),
***************
*** 118,122 ****
),
),
!
),
)
--- 118,122 ----
),
),
!
),
)
***************
*** 163,169 ****
object
'''
!
! pass
--- 163,173 ----
object
'''
+ #creating an responseObject
+ contextObj=self.getContext()
+ responseObj=contextObj.deliverResponse()
+ responseObj.setContext(contextObj)
+ responseObj.setQuestion(self)
! return responseObj
***************
*** 176,179 ****
--- 180,191 ----
+ def getContext(self):
+ '''
+
+ '''
+
+ pass
+
+
# uncomment lines below when you need
***************
*** 187,196 ****
}
!
actions= (
!
)
!
registerType(BaseExamQuestion)
--- 199,208 ----
}
!
actions= (
!
)
!
registerType(BaseExamQuestion)
***************
*** 199,200 ****
--- 211,214 ----
##code-section module-footer #fill in your manual code here
##/code-section module-footer
+
+
-------------------------------------------------------
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/