EduploneExam/answers BlindGapAnswer.py,NONE,1.1 BooleanAnswer.py,NONE,1.1 ChoiceGapAnswer.py,NONE,1.1 FreeTextAnswer.py,NONE,1.1 MatchingAnswer.py,NONE,1.1 MathAnswer.py,NONE,1.1 MultipleChoiceAnswer.py,NONE,1.1 SingleChoiceAnswer.py,NONE,1.1 TextTaskAnswer.py,NONE,1.1 TrueFalseAnswer.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/answers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20530/answers

Added Files:
	BlindGapAnswer.py BooleanAnswer.py ChoiceGapAnswer.py 
	FreeTextAnswer.py MatchingAnswer.py MathAnswer.py 
	MultipleChoiceAnswer.py SingleChoiceAnswer.py 
	TextTaskAnswer.py TrueFalseAnswer.py __init__.py 
Log Message:
import first run of ArchGenXML generated files


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

RCS-ID $Id: TrueFalseAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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 BooleanAnswer import BooleanAnswer

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


class TrueFalseAnswer(BaseContent,BooleanAnswer):
    security = ClassSecurityInfo()
    portal_type = meta_type = 'TrueFalseAnswer' 
    archetype_name = 'TrueFalseAnswer'   #this name appears in the 'add' box 
    allowed_content_types = [] + getattr(BooleanAnswer,'allowed_content_types',[])

    __implements__ = getattr(BaseContent,'__implements__',()) + getattr(BooleanAnswer,'__implements__',())

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

    schema=BaseSchema + getattr(BooleanAnswer,'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':'TrueFalseAnswer.gif',
        'immediate_view':'base_view',
        'global_allow':0,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(TrueFalseAnswer)
# end of class TrueFalseAnswer

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



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

RCS-ID $Id: MultipleChoiceAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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 BooleanAnswer import BooleanAnswer

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


class MultipleChoiceAnswer(BaseContent,BooleanAnswer):
    security = ClassSecurityInfo()
    portal_type = meta_type = 'MultipleChoiceAnswer' 
    archetype_name = 'MultipleChoiceAnswer'   #this name appears in the 'add' box 
    allowed_content_types = [] + getattr(BooleanAnswer,'allowed_content_types',[])

    __implements__ = getattr(BaseContent,'__implements__',()) + getattr(BooleanAnswer,'__implements__',())

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

    schema=BaseSchema + getattr(BooleanAnswer,'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':'MultipleChoiceAnswer.gif',
        'immediate_view':'base_view',
        'global_allow':0,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(MultipleChoiceAnswer)
# end of class MultipleChoiceAnswer

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



--- NEW FILE: FreeTextAnswer.py ---
# File: FreeTextAnswer.py
"""\
Represents ...

RCS-ID $Id: FreeTextAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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.IExamAnswer import IExamAnswer

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


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

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamAnswer,)

    ##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''',
            ),
        ),
        
        LinesField('correct',
            widget=LinesWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
        TextField('exemplar',
            widget=TextAreaWidget(description='Enter a value for exemplar.',
                description_msgid='EduploneExam_help_exemplar',
                i18n_domain='EduploneExam',
                label='Exemplar',
                label_msgid='EduploneExam_label_exemplar',
            ),
        ),
        
    ),
    )

    #Methods
    #methods from Interface IExamAnswer

    def processValue(self):
        '''
        
        '''
        
        pass



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

        
    actions=  (
        

          )
        

registerType(FreeTextAnswer)
# end of class FreeTextAnswer

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



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

RCS-ID $Id: ChoiceGapAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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 *


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


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

    __implements__ = getattr(BaseContent,'__implements__',())

    ##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''',
            ),
        ),
        
        StringField('correct',
            widget=StringWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
        LinesField('options',
            widget=LinesWidget(description='Enter a value for options.',
                description_msgid='EduploneExam_help_options',
                i18n_domain='EduploneExam',
                label='Options',
                label_msgid='EduploneExam_label_options',
            ),
        ),
        
    ),
    )

    #Methods


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

        
    actions=  (
        

          )
        

registerType(ChoiceGapAnswer)
# end of class ChoiceGapAnswer

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



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

#subpackages


#classes
import SingleChoiceAnswer
import MultipleChoiceAnswer
import ChoiceGapAnswer
import TrueFalseAnswer
import MatchingAnswer
import TextTaskAnswer
import FreeTextAnswer
import BooleanAnswer
import MathAnswer
import BlindGapAnswer

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

RCS-ID $Id: MathAnswer.py,v 1.1 2004/12/14 09:47:47 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.IExamAnswer import IExamAnswer

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


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

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamAnswer,)

    ##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''',
            ),
        ),
        
        FloatField('correct',
            widget=DecimalWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
        FloatField('tolerance',
            widget=DecimalWidget(description='''Enter the allowed absolute difference (+/-) to the correct value.''',
                description_msgid='EduploneExam_help_tolerance',
                i18n_domain='EduploneExam',
                label='Tolerance',
                label_msgid='EduploneExam_label_tolerance',
            ),
        ),
        
    ),
    )

    #Methods
    #methods from Interface IExamAnswer

    def processValue(self):
        '''
        
        '''
        
        pass



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

        
    actions=  (
        

          )
        

registerType(MathAnswer)
# end of class MathAnswer

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



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

RCS-ID $Id: TextTaskAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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.IExamAnswer import IExamAnswer

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


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

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamAnswer,)

    ##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''',
            ),
        ),
        
        LinesField('correct',
            widget=LinesWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
    ),
    )

    #Methods
    #methods from Interface IExamAnswer

    def processValue(self):
        '''
        
        '''
        
        pass



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

        
    actions=  (
        

          )
        

registerType(TextTaskAnswer)
# end of class TextTaskAnswer

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



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

RCS-ID $Id: MatchingAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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.IExamAnswer import IExamAnswer

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


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

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamAnswer,)

    ##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''',
            ),
        ),
        
        StringField('correct',
            widget=StringWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
        StringField('challange',
            widget=StringWidget(description='Enter a value for challange.',
                description_msgid='EduploneExam_help_challange',
                i18n_domain='EduploneExam',
                label='Challange',
                label_msgid='EduploneExam_label_challange',
            ),
        ),
        
        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 IExamAnswer

    def processValue(self):
        '''
        
        '''
        
        pass



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

        
    actions=  (
        

          )
        

registerType(MatchingAnswer)
# end of class MatchingAnswer

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



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

RCS-ID $Id: BooleanAnswer.py,v 1.1 2004/12/14 09:47:47 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.IExamAnswer import IExamAnswer

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


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

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamAnswer,)

    ##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''',
            ),
        ),
        
        BooleanField('correct',
            widget=BooleanWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
        TextField('challange',
            widget=TextAreaWidget(description='Enter a value for challange.',
                description_msgid='EduploneExam_help_challange',
                i18n_domain='EduploneExam',
                label='Challange',
                label_msgid='EduploneExam_label_challange',
            ),
        ),
        
        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 IExamAnswer

    def processValue(self):
        '''
        
        '''
        
        pass



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

        
    actions=  (
        

          )
        

registerType(BooleanAnswer)
# end of class BooleanAnswer

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



--- NEW FILE: SingleChoiceAnswer.py ---
# File: SingleChoiceAnswer.py
"""\
answer type with special single-choice validator

RCS-ID $Id: SingleChoiceAnswer.py,v 1.1 2004/12/14 09:47:47 yenzenz Exp $
"""
# Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed
# by FH-Aargau, Switzerland
#
# Generated: Tue Dec 14 10:39:59 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 BooleanAnswer import BooleanAnswer

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


class SingleChoiceAnswer(BaseContent,BooleanAnswer):
    '''
    answer type with special single-choice validator
    '''
    security = ClassSecurityInfo()
    portal_type = meta_type = 'SingleChoiceAnswer' 
    archetype_name = 'SingleChoiceAnswer'   #this name appears in the 'add' box 
    allowed_content_types = [] + getattr(BooleanAnswer,'allowed_content_types',[])

    __implements__ = getattr(BaseContent,'__implements__',()) + getattr(BooleanAnswer,'__implements__',())

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

    schema=BaseSchema + getattr(BooleanAnswer,'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':'SingleChoiceAnswer.gif',
        'immediate_view':'base_view',
        'global_allow':0,
        'filter_content_types':1,
        }

        
    actions=  (
        

          )
        

registerType(SingleChoiceAnswer)
# end of class SingleChoiceAnswer

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



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

RCS-ID $Id: BlindGapAnswer.py,v 1.1 2004/12/14 09:47:47 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.IExamAnswer import IExamAnswer

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


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

    __implements__ = getattr(BaseContent,'__implements__',()) + (IExamAnswer,)

    ##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''',
            ),
        ),
        
        LinesField('correct',
            widget=LinesWidget(description='Enter a value for correct.',
                description_msgid='EduploneExam_help_correct',
                i18n_domain='EduploneExam',
                label='Correct',
                label_msgid='EduploneExam_label_correct',
            ),
        ),
        
    ),
    )

    #Methods
    #methods from Interface IExamAnswer

    def processValue(self):
        '''
        
        '''
        
        pass



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

        
    actions=  (
        

          )
        

registerType(BlindGapAnswer)
# end of class BlindGapAnswer

##code-section module-footer #fill in your manual code here
##/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.