EduploneExam/userresponses SimpleResponse.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/userresponses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21005/userresponses Added Files: SimpleResponse.py __init__.py Log Message: adding missing new files --- NEW FILE: SimpleResponse.py --- # File: SimpleResponse.py """\ unknown RCS-ID $Id: SimpleResponse.py,v 1.1 2004/12/14 19:48:37 yenzenz Exp $ """ # Copyright (c) 2004 by eduplone Open Source Business Network EEIG, contributed # by FH-Aargau, Switzerland # # Generated: Tue Dec 14 20:43:08 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.IExamResponse import IExamResponse ##code-section module-header #fill in your manual code here ##/code-section module-header class SimpleResponse(BaseContent): security = ClassSecurityInfo() portal_type = meta_type = 'SimpleResponse' archetype_name = 'SimpleResponse' #this name appears in the 'add' box allowed_content_types = [] __implements__ = getattr(BaseContent,'__implements__',()) + (IExamResponse,) ##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('score', widget=DecimalWidget(description='Enter a value for score.', description_msgid='EduploneExam_help_score', i18n_domain='EduploneExam', label='Score', label_msgid='EduploneExam_label_score', ), ), ), ) #Methods #methods from Interface IExamResponse def setQuestion(self): ''' ''' pass def getQuestion(self): ''' ''' pass def getQuestionTitle(self): ''' ''' pass def getQuestionType(self): ''' ''' pass def setResponseValues(self): ''' ''' pass def getResponseValues(self): ''' ''' pass def setScore(self): ''' ''' pass def getScore(self): ''' ''' pass def getMaxScore(self): ''' ''' pass # uncomment lines below when you need factory_type_information={ 'allowed_content_types':allowed_content_types, 'allow_discussion': 0, #'content_icon':'SimpleResponse.gif', 'immediate_view':'base_view', 'global_allow':1, 'filter_content_types':1, } actions= ( ) registerType(SimpleResponse) # end of class SimpleResponse ##code-section module-footer #fill in your manual code here ##/code-section module-footer --- NEW FILE: __init__.py --- #subpackages #classes import SimpleResponse ------------------------------------------------------- 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/