EduploneExam/userresponses SimpleResponse.py,1.21,1.22 __init__.py,1.1,1.2
Nils Haagen <[email protected]> Fri, 08 Apr 2005 09:18:18 +0000
| 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-serv3973/userresponses Modified Files: SimpleResponse.py __init__.py Log Message: generated with ArchGen_1.4, +fillgap Index: SimpleResponse.py =================================================================== RCS file: /cvsroot/eduplone/EduploneExam/userresponses/SimpleResponse.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** SimpleResponse.py 2 Apr 2005 15:07:31 -0000 1.21 --- SimpleResponse.py 8 Apr 2005 09:18:15 -0000 1.22 *************** *** 3,13 **** unknown - RCS-ID $Id$ """ # Copyright (c) 2005 by eduplone Open Source Business Network EEIG, contributed # by FH-Aargau, Switzerland # ! # Generated: Wed Mar 30 22:50:24 2005 ! # Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/ # # GNU General Public Licence (GPL) --- 3,11 ---- unknown """ # Copyright (c) 2005 by eduplone Open Source Business Network EEIG, contributed # by FH-Aargau, Switzerland # ! # Generator: ArchGenXML Version 1.4 devel 1 http://sf.net/projects/archetypes/ # # GNU General Public Licence (GPL) *************** *** 25,29 **** # Place, Suite 330, Boston, MA 02111-1307 USA # ! __author__ = 'Nils Haagen, Jens Klein <[email protected]>, <[email protected]>' __docformat__ = 'plaintext' --- 23,27 ---- # Place, Suite 330, Boston, MA 02111-1307 USA # ! __author__ = '''Nils Haagen <[email protected]>, Jens Klein <[email protected]>''' __docformat__ = 'plaintext' *************** *** 31,47 **** 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 --- 29,79 ---- from Products.Archetypes.public import * + from Products.EduploneExam.interfaces.IExamResponse import IExamResponse + + from Products.EduploneExam.config import * + ##code-section module-header #fill in your manual code here ##/code-section module-header + schema= Schema(( + FloatField('userScore', + widget=DecimalWidget( + label='Userscore', + label_msgid='EduploneExam_label_userScore', + description='Enter a value for userScore.', + description_msgid='EduploneExam_help_userScore', + i18n_domain='EduploneExam', + ), + ), + + ), + ) + + ##code-section after-schema #fill in your manual code here + ##/code-section after-schema class SimpleResponse(BaseContent): security = ClassSecurityInfo() ! __implements__ = (getattr(BaseContent,'__implements__',()),) + (IExamResponse,) ! ! # This name appears in the 'add' box ! archetype_name = 'SimpleResponse' ! portal_type = meta_type = 'SimpleResponse' ! ! allowed_content_types = [] ! filter_content_types = 1 ! global_allow = 1 ! allow_discussion = 0 ! #content_icon = 'SimpleResponse.gif' ! immediate_view = 'base_view' ! default_view = 'base_view' ! typeDescription = "SimpleResponse" ! typeDescMsgId = 'description_edit_simpleresponse' ! ! schema = BaseSchema + \ ! schema ##code-section class-header #fill in your manual code here *************** *** 57,76 **** ##/code-section class-header - schema=BaseSchema + Schema(( - FloatField('userScore', - widget=DecimalWidget(description='Enter a value for userScore.', - description_msgid='EduploneExam_help_userScore', - i18n_domain='EduploneExam', - label='Userscore', - label_msgid='EduploneExam_label_userScore', - ), - ), - - ), - ) #Methods #methods from Interface IExamResponse def setQuestion(self, question): ''' --- 89,97 ---- ##/code-section class-header #Methods #methods from Interface IExamResponse + security.declarePublic('setQuestion') def setQuestion(self, question): ''' *************** *** 85,88 **** --- 106,110 ---- + security.declarePublic('getQuestion') def getQuestion(self, instance): ''' *************** *** 96,99 **** --- 118,122 ---- + security.declarePublic('getQuestionTitle') def getQuestionTitle(self): ''' *************** *** 103,106 **** --- 126,130 ---- + security.declarePublic('getQuestionType') def getQuestionType(self): ''' *************** *** 110,113 **** --- 134,138 ---- + security.declarePublic('setContext') def setContext(self,contextobject): ''' *************** *** 118,121 **** --- 143,147 ---- + security.declarePublic('getContext') def getContext(self,instance): ''' *************** *** 129,132 **** --- 155,159 ---- + security.declarePublic('setScore') def setScore(self, score): ''' *************** *** 136,139 **** --- 163,167 ---- + security.declarePublic('getScore') def getScore(self): ''' *************** *** 143,146 **** --- 171,175 ---- + security.declarePublic('getMaxScore') def getMaxScore(self): ''' *************** *** 150,153 **** --- 179,183 ---- + security.declarePublic('getResponseValues') def getResponseValues(self): ''' *************** *** 158,161 **** --- 188,192 ---- + security.declarePublic('setResponseValues') def setResponseValues(self, **kwargs): ''' *************** *** 166,169 **** --- 197,201 ---- + security.declarePublic('__getitem__') def __getitem__(self, key): ''' *************** *** 176,198 **** ! ! # 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 --- 208,212 ---- ! registerType(SimpleResponse,PROJECTNAME) # end of class SimpleResponse *************** *** 201,202 **** --- 215,217 ---- + Index: __init__.py =================================================================== RCS file: /cvsroot/eduplone/EduploneExam/userresponses/__init__.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** __init__.py 14 Dec 2004 19:48:37 -0000 1.1 --- __init__.py 8 Apr 2005 09:18:15 -0000 1.2 *************** *** 1,6 **** ! #subpackages #classes import SimpleResponse --- 1,14 ---- + # Initialise this package. You may add your own code in the protected sections + # below. ! ##code-section init-module-header #fill in your manual code here ! ##/code-section init-module-header ! + #subpackages #classes import SimpleResponse + + ##code-section init-module-footer #fill in your manual code here + ##/code-section init-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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click