EduploneExam/userresponses SessionResponse.py,1.1,1.2 SimpleResponse.py,1.14,1.15

Jens Klein <[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-serv15864/userresponses

Modified Files:
	SessionResponse.py SimpleResponse.py 
Log Message:
loose value return


Index: SimpleResponse.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SimpleResponse.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** SimpleResponse.py	16 Dec 2004 13:28:21 -0000	1.14
--- SimpleResponse.py	16 Dec 2004 14:51:33 -0000	1.15
***************
*** 8,16 ****
  # by FH-Aargau, Switzerland
  #
! # Generated: Thu Dec 16 14:21:01 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 14:24:36 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,)
***************
*** 66,70 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 66,70 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 77,81 ****
              ),
          ),
!         
          FloatField('userScore',
              widget=DecimalWidget(description='Enter a value for userScore.',
--- 77,81 ----
              ),
          ),
! 
          FloatField('userScore',
              widget=DecimalWidget(description='Enter a value for userScore.',
***************
*** 86,90 ****
              ),
          ),
!         
      ),
      )
--- 86,90 ----
              ),
          ),
! 
      ),
      )
***************
*** 193,198 ****
              return self._responseValues[key]
          else:
!             raise KeyError("Invalid key '%s' for class %s with UID %s." % \
!                            (key, self.__name__, self.UID()))
  
  
--- 193,197 ----
              return self._responseValues[key]
          else:
!             None
  
  
***************
*** 208,217 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(SimpleResponse)
--- 207,216 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(SimpleResponse)
***************
*** 220,223 ****
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 219,220 ----

Index: SessionResponse.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SessionResponse.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionResponse.py	16 Dec 2004 11:01:22 -0000	1.1
--- SessionResponse.py	16 Dec 2004 14:51:33 -0000	1.2
***************
*** 136,138 ****
              return self._responseValues[key]
          else:
!             raise KeyError("Invalid key '%s' in SessionResponse." % key)
--- 136,138 ----
              return self._responseValues[key]
          else:
!             return None



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