EduploneExam/userresponses SessionResponse.py,1.6,1.7 SimpleResponse.py,1.15,1.16

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

Modified Files:
	SessionResponse.py SimpleResponse.py 
Log Message:
security SOLVED cd EduploneExam/cd EduploneExam/

Index: SimpleResponse.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SimpleResponse.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** SimpleResponse.py	16 Dec 2004 14:51:33 -0000	1.15
--- SimpleResponse.py	16 Dec 2004 15:18:27 -0000	1.16
***************
*** 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
--- 8,16 ----
  # by FH-Aargau, Switzerland
  #
! # Generated: Thu Dec 16 16:17:23 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 ----
              ),
          ),
!         
      ),
      )
***************
*** 207,216 ****
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(SimpleResponse)
--- 207,216 ----
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(SimpleResponse)
***************
*** 219,220 ****
--- 219,222 ----
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
+ 
+ 

Index: SessionResponse.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SessionResponse.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SessionResponse.py	16 Dec 2004 15:10:41 -0000	1.6
--- SessionResponse.py	16 Dec 2004 15:18:27 -0000	1.7
***************
*** 25,28 ****
--- 25,29 ----
  __docformat__ = 'plaintext'
  
+ from Globals import InitializeClass
  from AccessControl import ClassSecurityInfo
  from Products.EduploneExam.interfaces.IExamResponse import IExamResponse
***************
*** 79,82 ****
--- 80,84 ----
          return self._questionTitle
  
+     security.declarePublic('getQuestionType')
      def getQuestionType(self):
          '''
***************
*** 143,144 ****
--- 145,149 ----
          else:
              return None
+ 
+ 
+ InitializeClass(SessionResponse)



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