EduploneExam registry.py,1.1,1.2
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-serv23459
Modified Files:
registry.py
Log Message:
itest the registry
Index: registry.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/registry.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** registry.py 14 Dec 2004 10:31:39 -0000 1.1
--- registry.py 14 Dec 2004 12:42:53 -0000 1.2
***************
*** 32,38 ****
from interfaces.IExamQuestion import IExamQuestion
! def registerQuestion(klass):
""" register a IExamQuestion implementing class """
! if not IExamQuestion.isImplementedBy(klass):
raise NotImplementedError('The class %s does not implement interface IExamQuestion' % klass.__name__)
if not klass.__name__ in _question_types:
--- 32,38 ----
from interfaces.IExamQuestion import IExamQuestion
! def registerQuestionType(klass):
""" register a IExamQuestion implementing class """
! if not IExamQuestion.isImplementedByInstancesOf(klass):
raise NotImplementedError('The class %s does not implement interface IExamQuestion' % klass.__name__)
if not klass.__name__ in _question_types:
***************
*** 40,42 ****
def getQuestionTypes():
! return _question_types.copy()
--- 40,42 ----
def getQuestionTypes():
! return _question_types
-------------------------------------------------------
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/