EduploneExam/userresponses SimpleResponse.py,1.10,1.11
Nils Haagen <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/userresponses
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8840/userresponses
Modified Files:
SimpleResponse.py
Log Message:
aligned responseObject/deliver/process
Index: SimpleResponse.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SimpleResponse.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** SimpleResponse.py 15 Dec 2004 12:11:44 -0000 1.10
--- SimpleResponse.py 15 Dec 2004 12:25:02 -0000 1.11
***************
*** 8,16 ****
# by FH-Aargau, Switzerland
#
! # Generated: Wed Dec 15 12:31:57 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
***************
*** 39,45 ****
class SimpleResponse(BaseContent):
security = ClassSecurityInfo()
! portal_type = meta_type = 'SimpleResponse'
! archetype_name = 'SimpleResponse' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(BaseContent,'__implements__',()) + (IExamResponse,)
--- 39,45 ----
class SimpleResponse(BaseContent):
security = ClassSecurityInfo()
! portal_type = meta_type = 'SimpleResponse'
! archetype_name = 'SimpleResponse' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(BaseContent,'__implements__',()) + (IExamResponse,)
***************
*** 65,69 ****
),
),
!
StringField('title',
accessor='''Title''',
--- 65,69 ----
),
),
!
StringField('title',
accessor='''Title''',
***************
*** 76,80 ****
),
),
!
FloatField('userScore',
widget=DecimalWidget(description='Enter a value for userScore.',
--- 76,80 ----
),
),
!
FloatField('userScore',
widget=DecimalWidget(description='Enter a value for userScore.',
***************
*** 85,89 ****
),
),
!
),
)
--- 85,89 ----
),
),
!
),
)
***************
*** 103,106 ****
--- 103,107 ----
self._questionMaxScore=question.getMaxScore()
+
def getQuestion(self):
'''
***************
*** 113,116 ****
--- 114,118 ----
return None
+
def getQuestionTitle(self):
'''
***************
*** 119,122 ****
--- 121,125 ----
return self._questionTitle
+
def getQuestionType(self):
'''
***************
*** 125,128 ****
--- 128,132 ----
return self._questionType
+
def setContext(self,contextobject):
'''
***************
*** 132,135 ****
--- 136,140 ----
self.addReference(contextobject, self.CONTEXT_RELATION)
+
def getContext(self):
'''
***************
*** 142,145 ****
--- 147,151 ----
return None
+
def setResponseValues(self, **kwargs):
'''
***************
*** 149,152 ****
--- 155,159 ----
pass
+
def getResponseValues(self):
'''
***************
*** 189,198 ****
}
!
actions= (
!
)
!
registerType(SimpleResponse)
--- 196,205 ----
}
!
actions= (
!
)
!
registerType(SimpleResponse)
***************
*** 201,202 ****
--- 208,211 ----
##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/