EduploneExam/userresponses SimpleResponse.py,1.2,1.3

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-serv16362/userresponses

Modified Files:
	SimpleResponse.py 
Log Message:
SimpleResponseObject modified

Index: SimpleResponse.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SimpleResponse.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SimpleResponse.py	15 Dec 2004 08:37:45 -0000	1.2
--- SimpleResponse.py	15 Dec 2004 10:29:08 -0000	1.3
***************
*** 8,12 ****
  # by FH-Aargau, Switzerland
  #
! # Generated: Wed Dec 15 09:36:21 2004
  # Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
  #
--- 8,12 ----
  # by FH-Aargau, Switzerland
  #
! # Generated: Wed Dec 15 11:25:16 2004
  # Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
  #
***************
*** 46,49 ****
--- 46,55 ----
  
      ##code-section class-header #fill in your manual code here
+     
+     self._questionUID=None
+     self._questionTitle=''
+     self._questionType=''
+     self._questionMaxScore=0
+     
      ##/code-section class-header
  
***************
*** 69,78 ****
          ),
          
!         FloatField('score',
!             widget=DecimalWidget(description='Enter a value for score.',
!                 description_msgid='EduploneExam_help_score',
                  i18n_domain='EduploneExam',
!                 label='Score',
!                 label_msgid='EduploneExam_label_score',
              ),
          ),
--- 75,84 ----
          ),
          
!         FloatField('userScore',
!             widget=DecimalWidget(description='Enter a value for userScore.',
!                 description_msgid='EduploneExam_help_userScore',
                  i18n_domain='EduploneExam',
!                 label='Userscore',
!                 label_msgid='EduploneExam_label_userScore',
              ),
          ),
***************
*** 84,93 ****
      #methods from Interface IExamResponse
  
!     def setQuestion(self):
          '''
          
          '''
!         
!         pass
  
  
--- 90,101 ----
      #methods from Interface IExamResponse
  
!     def setQuestion(self, question):
          '''
          
          '''
!         self._questionUID=question.UID()
!         self._questionTitle=question.getTitle()
!         self._questionType=question.archetype_name
!         self._questionMaxScore=question.getMaxScore()
  
  
***************
*** 96,101 ****
          
          '''
!         
!         pass
  
  
--- 104,108 ----
          
          '''
!         return self._questionUID
  
  
***************
*** 104,109 ****
          
          '''
!         
!         pass
  
  
--- 111,115 ----
          
          '''
!         return self._questionTitle
  
  
***************
*** 112,120 ****
          
          '''
!         
!         pass
  
  
!     def setResponseValues(self):
          '''
          
--- 118,125 ----
          
          '''
!         return self._questionType
  
  
!     def setResponseValues(self, **kwargs):
          '''
          
***************
*** 132,141 ****
  
  
!     def setScore(self):
          '''
          
          '''
!         
!         pass
  
  
--- 137,145 ----
  
  
!     def setScore(self, score):
          '''
          
          '''
!         self.setUserScore(score)
  
  
***************
*** 144,149 ****
          
          '''
!         
!         pass
  
  
--- 148,152 ----
          
          '''
!         self.getUserScore()
  
  
***************
*** 153,157 ****
          '''
          
!         pass
  
  
--- 156,160 ----
          '''
          
!         return self._questionMaxScore
  
  



-------------------------------------------------------
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.