EduploneExam ExamFolder.py,1.5,1.6 registry.py,1.3,1.4 version.txt,1.2,1.3
Jens Klein <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16643
Modified Files:
ExamFolder.py registry.py version.txt
Log Message:
rebuild from model
Index: registry.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/registry.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** registry.py 14 Dec 2004 13:09:57 -0000 1.3
--- registry.py 14 Dec 2004 14:49:16 -0000 1.4
***************
*** 29,34 ****
--- 29,36 ----
_question_types = {}
+ _answer_types = {}
from interfaces.IExamQuestion import IExamQuestion
+ from interfaces.IExamQuestion import IExamAnswer
def registerQuestionType(klass):
***************
*** 41,42 ****
--- 43,54 ----
def getQuestionTypes():
return _question_types.copy()
+
+ def registerAnswerType(klass):
+ """ register a IExamAnswer implementing class """
+ if not IExamAnswer.isImplementedByInstancesOf(klass):
+ raise NotImplementedError('The class %s does not implement interface IExamQuestion' % klass.__name__)
+ if not klass.__name__ in _answer_types.keys():
+ _answer_types[klass.__name__]=klass
+
+ def getAnswerTypes():
+ return _answer_types.copy()
Index: version.txt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/version.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** version.txt 14 Dec 2004 13:09:57 -0000 1.2
--- version.txt 14 Dec 2004 14:49:16 -0000 1.3
***************
*** 1 ****
! 0.1 build 3
--- 1 ----
! 0.1 build 5
Index: ExamFolder.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/ExamFolder.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ExamFolder.py 14 Dec 2004 14:34:15 -0000 1.5
--- ExamFolder.py 14 Dec 2004 14:49:16 -0000 1.6
***************
*** 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'
***************
*** 42,49 ****
allowed_content_types = []
##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.',
--- 43,52 ----
allowed_content_types = []
+ __implements__ = getattr(OrderedBaseFolder,'__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.',
***************
*** 71,75 ****
#Methods
- security.declareProtected('''''','allowedContentTypes')
def allowedContentTypes(self):
""" use own registry to recognize allowed tpyes """
--- 74,77 ----
***************
*** 83,87 ****
- security.declareProtected('''''','invokeFactory')
def invokeFactory(self):
""" Invokes the portal_types tool """
--- 85,88 ----
-------------------------------------------------------
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/