EduploneExam/questions BaseExamQuestion.py,1.3,1.4 FillGapQuestion.py,1.3,1.4 FreeTextQuestion.py,1.3,1.4 MatchingQuestion.py,1.3,1.4 MathQuestion.py,1.3,1.4 MultipleChoiceQuestion.py,1.3,1.4 SingleChoiceQuestion.py,1.3,1.4 TextTaskQuestion.py,1.3,1.4 TrueFalseQuestion.py,1.3,1.4

Jens Klein <[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-serv16643/questions

Modified Files:
	BaseExamQuestion.py FillGapQuestion.py FreeTextQuestion.py 
	MatchingQuestion.py MathQuestion.py MultipleChoiceQuestion.py 
	SingleChoiceQuestion.py TextTaskQuestion.py 
	TrueFalseQuestion.py 
Log Message:
rebuild from model


Index: FreeTextQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FreeTextQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FreeTextQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- FreeTextQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 38,49 ****
  class FreeTextQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'FreeTextQuestion' 
!     archetype_name = 'FreeTextQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['FreeTextAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 42,55 ----
  class FreeTextQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'FreeTextQuestion'
!     archetype_name = 'FreeTextQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['FreeTextAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 54,58 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 60,64 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 65,69 ****
              ),
          ),
!         
      ),
      )
--- 71,75 ----
              ),
          ),
! 
      ),
      )
***************
*** 71,80 ****
      #Methods
  
-     security.declareProtected('''''','processResponse')
      def processResponse(self):
          '''
!         
          '''
!         
          pass
  
--- 77,85 ----
      #Methods
  
      def processResponse(self):
          '''
! 
          '''
! 
          pass
  
***************
*** 91,100 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(FreeTextQuestion)
--- 96,105 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(FreeTextQuestion)
***************
*** 102,106 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 107,110 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(FreeTextQuestion)
  ##/code-section module-footer

Index: FillGapQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/FillGapQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FillGapQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- FillGapQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 38,49 ****
  class FillGapQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'FillGapQuestion' 
!     archetype_name = 'FillGapQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['BlindGapAnswer', 'ChoiceGapAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 42,55 ----
  class FillGapQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'FillGapQuestion'
!     archetype_name = 'FillGapQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['BlindGapAnswer', 'ChoiceGapAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 54,58 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 60,64 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 65,69 ****
              ),
          ),
!         
      ),
      )
--- 71,75 ----
              ),
          ),
! 
      ),
      )
***************
*** 82,91 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(FillGapQuestion)
--- 88,97 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(FillGapQuestion)
***************
*** 93,97 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 99,102 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(FillGapQuestion)
  ##/code-section module-footer

Index: TrueFalseQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TrueFalseQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TrueFalseQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- TrueFalseQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,12 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 http://sf.net/projects/archetypes/
  #
  # GNU General Public Licence (GPL)
--- 5,13 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 2004
! # Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
  #
  # GNU General Public Licence (GPL)
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 42,49 ****
      allowed_content_types = ['TrueFalseAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 46,55 ----
      allowed_content_types = ['TrueFalseAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 93,96 ****
--- 99,103 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(TrueFalseQuestion)
  ##/code-section module-footer
  

Index: BaseExamQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/BaseExamQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** BaseExamQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- BaseExamQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,12 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 http://sf.net/projects/archetypes/
  #
  # GNU General Public Licence (GPL)
--- 5,13 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 2004
! # Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
  #
  # GNU General Public Licence (GPL)
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 33,36 ****
--- 34,40 ----
  from Products.EduploneExam.interfaces.IExamQuestion import IExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 48,52 ****
      ##/code-section class-header
  
!     schema=BaseSchema  + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 52,56 ----
      ##/code-section class-header
  
!     schema=BaseSchema + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 121,125 ****
      #methods from Interface IExamNotifier
  
-     security.declareProtected('''''','registerNotifierOnView')
      def registerNotifierOnView(self):
          '''
--- 125,128 ----
***************
*** 130,134 ****
  
  
-     security.declareProtected('''''','registerNotifierAfterProcess')
      def registerNotifierAfterProcess(self):
          '''
--- 133,136 ----
***************
*** 139,143 ****
  
  
-     security.declareProtected('''''','notifyOnView')
      def notifyOnView(self):
          '''
--- 141,144 ----
***************
*** 148,152 ****
  
  
-     security.declareProtected('''''','notifyAfterProcess')
      def notifyAfterProcess(self):
          '''
--- 149,152 ----
***************
*** 158,162 ****
      #methods from Interface IExamQuestion
  
-     security.declareProtected('''''','processResponse')
      def processResponse(self):
          '''
--- 158,161 ----

Index: MathQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MathQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MathQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- MathQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 38,49 ****
  class MathQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'MathQuestion' 
!     archetype_name = 'MathQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['MathAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 42,55 ----
  class MathQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'MathQuestion'
!     archetype_name = 'MathQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['MathAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 54,58 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 60,64 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 65,69 ****
              ),
          ),
!         
      ),
      )
--- 71,75 ----
              ),
          ),
! 
      ),
      )
***************
*** 82,91 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(MathQuestion)
--- 88,97 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(MathQuestion)
***************
*** 93,97 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 99,102 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(MathQuestion)
  ##/code-section module-footer

Index: MatchingQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MatchingQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MatchingQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- MatchingQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 38,49 ****
  class MatchingQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'MatchingQuestion' 
!     archetype_name = 'MatchingQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['MatchingAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 42,55 ----
  class MatchingQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'MatchingQuestion'
!     archetype_name = 'MatchingQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['MatchingAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 54,58 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 60,64 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 65,69 ****
              ),
          ),
!         
      ),
      )
--- 71,75 ----
              ),
          ),
! 
      ),
      )
***************
*** 82,91 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(MatchingQuestion)
--- 88,97 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(MatchingQuestion)
***************
*** 93,97 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 99,102 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(MatchingQuestion)
  ##/code-section module-footer

Index: TextTaskQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/TextTaskQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TextTaskQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- TextTaskQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 38,49 ****
  class TextTaskQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'TextTaskQuestion' 
!     archetype_name = 'TextTaskQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['TextTaskAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 42,55 ----
  class TextTaskQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'TextTaskQuestion'
!     archetype_name = 'TextTaskQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['TextTaskAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 54,58 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 60,64 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 65,69 ****
              ),
          ),
!         
      ),
      )
--- 71,75 ----
              ),
          ),
! 
      ),
      )
***************
*** 82,91 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(TextTaskQuestion)
--- 88,97 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(TextTaskQuestion)
***************
*** 93,97 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 99,102 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(TextTaskQuestion)
  ##/code-section module-footer

Index: SingleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/SingleChoiceQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SingleChoiceQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- SingleChoiceQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 38,49 ****
  class SingleChoiceQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'SingleChoiceQuestion' 
!     archetype_name = 'SingleChoiceQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['SingleChoiceAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 42,55 ----
  class SingleChoiceQuestion(BaseFolder,BaseExamQuestion):
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'SingleChoiceQuestion'
!     archetype_name = 'SingleChoiceQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['SingleChoiceAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 54,58 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 60,64 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 65,69 ****
              ),
          ),
!         
      ),
      )
--- 71,75 ----
              ),
          ),
! 
      ),
      )
***************
*** 82,91 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(SingleChoiceQuestion)
--- 88,97 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(SingleChoiceQuestion)
***************
*** 93,97 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 99,102 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(SingleChoiceQuestion)
  ##/code-section module-footer

Index: MultipleChoiceQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/MultipleChoiceQuestion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MultipleChoiceQuestion.py	14 Dec 2004 14:34:18 -0000	1.3
--- MultipleChoiceQuestion.py	14 Dec 2004 14:49:18 -0000	1.4
***************
*** 5,15 ****
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by unknown
  #
! # Generated: Tue Dec 14 14:49:35 2004
! # Generator: ArchGenXML Version 1.2 devel 1 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
--- 5,16 ----
  RCS-ID $Id$
  """
! # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
! # by FH-Aargau, Switzerland
  #
! # Generated: Tue Dec 14 15:46:24 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
***************
*** 24,28 ****
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'unknown <unknown>'
  __docformat__ = 'plaintext'
  
--- 25,29 ----
  # Place, Suite 330, Boston, MA  02111-1307  USA
  #
! __author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
  __docformat__ = 'plaintext'
  
***************
*** 32,35 ****
--- 33,39 ----
  from BaseExamQuestion import BaseExamQuestion
  
+ # additional imports
+ from Products.EduploneExam.registry import registerQuestionType
+ 
  ##code-section module-header #fill in your manual code here
  ##/code-section module-header
***************
*** 41,52 ****
      '''
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'MultipleChoiceQuestion' 
!     archetype_name = 'MultipleChoiceQuestion'   #this name appears in the 'add' box 
      allowed_content_types = ['MultipleChoiceAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema  + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
--- 45,58 ----
      '''
      security = ClassSecurityInfo()
!     portal_type = meta_type = 'MultipleChoiceQuestion'
!     archetype_name = 'MultipleChoiceQuestion'   #this name appears in the 'add' box
      allowed_content_types = ['MultipleChoiceAnswer'] + getattr(BaseExamQuestion,'allowed_content_types',[])
  
+     __implements__ = getattr(BaseFolder,'__implements__',()) + getattr(BaseExamQuestion,'__implements__',())
+ 
      ##code-section class-header #fill in your manual code here
      ##/code-section class-header
  
!     schema=BaseFolderSchema + getattr(BaseExamQuestion,'schema',Schema(())) + Schema((
          StringField('id',
              widget=StringWidget(description='Enter a value for id.',
***************
*** 57,61 ****
              ),
          ),
!         
          StringField('title',
              accessor='''Title''',
--- 63,67 ----
              ),
          ),
! 
          StringField('title',
              accessor='''Title''',
***************
*** 68,72 ****
              ),
          ),
!         
      ),
      )
--- 74,78 ----
              ),
          ),
! 
      ),
      )
***************
*** 85,94 ****
          }
  
!         
      actions=  (
!         
  
            )
!         
  
  registerType(MultipleChoiceQuestion)
--- 91,100 ----
          }
  
! 
      actions=  (
! 
  
            )
! 
  
  registerType(MultipleChoiceQuestion)
***************
*** 96,100 ****
  
  ##code-section module-footer #fill in your manual code here
  ##/code-section module-footer
- 
- 
--- 102,105 ----
  
  ##code-section module-footer #fill in your manual code here
+ registerQuestionType(MultipleChoiceQuestion)
  ##/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/
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.