EduploneExam/questions BaseExamQuestion.py,NONE,1.1 FillGapQuestion.py,NONE,1.1 FreeTextQuestion.py,NONE,1.1 MatchingQuestion.py,NONE,1.1 MathQuestion.py,NONE,1.1 MultipleChoiceQuestion.py,NONE,1.1 SingleChoiceQuestion.py,NONE,1.1 TextTaskQuestion.py,NONE,1.1 TrueFalseQuestion.py,NONE,1.1 __init__.py,NONE,1.1

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-serv20530/questions

Added Files:
	BaseExamQuestion.py FillGapQuestion.py FreeTextQuestion.py 
	MatchingQuestion.py MathQuestion.py MultipleChoiceQuestion.py 
	SingleChoiceQuestion.py TextTaskQuestion.py 
	TrueFalseQuestion.py __init__.py 
Log Message:
import first run of ArchGenXML generated files


--- NEW FILE: FreeTextQuestion.py ---
# File: FreeTextQuestion.py
"""\
unknown

RCS-ID $Id: FreeTextQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods

    def processResponse(self):
        '''
        
        '''
        
        pass



    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'FreeTextQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(FreeTextQuestion)
# end of class FreeTextQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: FillGapQuestion.py ---
# File: FillGapQuestion.py
"""\
unknown

RCS-ID $Id: FillGapQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'FillGapQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(FillGapQuestion)
# end of class FillGapQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: TrueFalseQuestion.py ---
# File: TrueFalseQuestion.py
"""\
unknown

RCS-ID $Id: TrueFalseQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


class TrueFalseQuestion(BaseFolder,BaseExamQuestion):
    security = ClassSecurityInfo()
    portal_type = meta_type = 'TrueFalseQuestion' 
    archetype_name = 'TrueFalseQuestion'   #this name appears in the 'add' box 
    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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'TrueFalseQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(TrueFalseQuestion)
# end of class TrueFalseQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: BaseExamQuestion.py ---
# File: BaseExamQuestion.py
"""\
unknown

RCS-ID $Id: BaseExamQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from Products.EduploneExam.interfaces.IExamNotifier import IExamNotifier
from Products.EduploneExam.interfaces.IExamQuestion import IExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


class BaseExamQuestion(BaseContent):
    security = ClassSecurityInfo()
    portal_type = meta_type = 'BaseExamQuestion' 
    archetype_name = 'BaseExamQuestion'   #this name appears in the 'add' box 
    allowed_content_types = [] 

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamNotifier,IExamQuestion,)

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    schema=BaseSchema + Schema((
        StringField('id',
            widget=StringWidget(description='Enter a value for id.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
        TextField('question',
            widget=TextAreaWidget(description='Enter a value for question.',
                description_msgid='EduploneExam_help_question',
                i18n_domain='EduploneExam',
                label='Question',
                label_msgid='EduploneExam_label_question',
            ),
        ),
        
        TextField('instruction',
            widget=TextAreaWidget(description='Enter a value for instruction.',
                description_msgid='EduploneExam_help_instruction',
                i18n_domain='EduploneExam',
                label='Instruction',
                label_msgid='EduploneExam_label_instruction',
            ),
        ),
        
        IntegerField('maxscore',
            widget=IntegerWidget(description='Enter a value for maxscore.',
                description_msgid='EduploneExam_help_maxscore',
                i18n_domain='EduploneExam',
                label='Maxscore',
                label_msgid='EduploneExam_label_maxscore',
            ),
        ),
        
        BooleanField('strict',
            widget=BooleanWidget(description='Enter a value for strict.',
                description_msgid='EduploneExam_help_strict',
                i18n_domain='EduploneExam',
                label='Strict',
                label_msgid='EduploneExam_label_strict',
            ),
        ),
        
        ImageField('picture',
            storage=AttributeStorage(),
            widget=ImageWidget(description='Enter a value for picture.',
                description_msgid='EduploneExam_help_picture',
                i18n_domain='EduploneExam',
                label='Picture',
                label_msgid='EduploneExam_label_picture',
            ),
        ),
        
    ),
    )

    #Methods
    #methods from Interface IExamNotifier

    def registerNotifierOnView(self):
        '''
        register an object
        '''
        
        pass


    def registerNotifierAfterProcess(self):
        '''
        
        '''
        
        pass


    def notifyOnView(self):
        '''
        
        '''
        
        pass


    def notifyAfterProcess(self):
        '''
        
        '''
        
        pass

    #methods from Interface IExamQuestion

    def processResponse(self):
        '''
        gets a request.RESPONSE and returns a evaluated ExamResponse
        object
        '''
        
        pass



    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'BaseExamQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':0,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(BaseExamQuestion)
# end of class BaseExamQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: MathQuestion.py ---
# File: MathQuestion.py
"""\
unknown

RCS-ID $Id: MathQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'MathQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(MathQuestion)
# end of class MathQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: MatchingQuestion.py ---
# File: MatchingQuestion.py
"""\
unknown

RCS-ID $Id: MatchingQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'MatchingQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(MatchingQuestion)
# end of class MatchingQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: TextTaskQuestion.py ---
# File: TextTaskQuestion.py
"""\
unknown

RCS-ID $Id: TextTaskQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'TextTaskQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(TextTaskQuestion)
# end of class TextTaskQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: SingleChoiceQuestion.py ---
# File: SingleChoiceQuestion.py
"""\
unknown

RCS-ID $Id: SingleChoiceQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'SingleChoiceQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(SingleChoiceQuestion)
# end of class SingleChoiceQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: MultipleChoiceQuestion.py ---
# File: MultipleChoiceQuestion.py
"""\
get values from request and returns an evaluated response

RCS-ID $Id: MultipleChoiceQuestion.py,v 1.1 2004/12/14 09:47:48 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:40:00 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
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>'
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *

from BaseExamQuestion import BaseExamQuestion

##code-section module-header #fill in your manual code here
##/code-section module-header


class MultipleChoiceQuestion(BaseFolder,BaseExamQuestion):
    '''
    get values from request and returns an evaluated response
    '''
    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.',
                description_msgid='''help_short_name''',
                i18n_domain='''plone''',
                label='Id',
                label_msgid='''label_short_name''',
            ),
        ),
        
        StringField('title',
            accessor='''Title''',
            searchable=1,
            widget=StringWidget(description='Enter a value for title.',
                description_msgid='''help_title''',
                i18n_domain='''plone''',
                label='Title',
                label_msgid='''label_title''',
            ),
        ),
        
    ),
    )

    #Methods


    # uncomment lines below when you need
    factory_type_information={
        'allowed_content_types':allowed_content_types,
        'allow_discussion': 0,
        #'content_icon':'MultipleChoiceQuestion.gif',
        'immediate_view':'base_view',
        'global_allow':1,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(MultipleChoiceQuestion)
# end of class MultipleChoiceQuestion

##code-section module-footer #fill in your manual code here
##/code-section module-footer



--- NEW FILE: __init__.py ---

#subpackages


#classes
import MultipleChoiceQuestion
import BaseExamQuestion
import SingleChoiceQuestion
import TrueFalseQuestion
import FillGapQuestion
import FreeTextQuestion
import MatchingQuestion
import TextTaskQuestion
import MathQuestion



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