EduploneExam/questions BaseExamQuestion.py,1.12,1.13
Jens Klein <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/questions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6090/questions
Modified Files:
BaseExamQuestion.py
Log Message:
tests are running now!
Index: BaseExamQuestion.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/questions/BaseExamQuestion.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** BaseExamQuestion.py 15 Dec 2004 11:32:23 -0000 1.12
--- BaseExamQuestion.py 15 Dec 2004 12:11:43 -0000 1.13
***************
*** 12,16 ****
#
# 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
--- 12,16 ----
#
# 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
***************
*** 43,49 ****
class BaseExamQuestion(BaseContent):
security = ClassSecurityInfo()
! portal_type = meta_type = 'BaseExamQuestion'
! archetype_name = 'BaseExamQuestion' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(BaseContent,'__implements__',()) + (IExamNotifier,IExamQuestion,)
--- 43,49 ----
class BaseExamQuestion(BaseContent):
security = ClassSecurityInfo()
! portal_type = meta_type = 'BaseExamQuestion'
! archetype_name = 'BaseExamQuestion' #this name appears in the 'add' box
! allowed_content_types = []
__implements__ = getattr(BaseContent,'__implements__',()) + (IExamNotifier,IExamQuestion,)
***************
*** 61,65 ****
),
),
!
StringField('title',
accessor='''Title''',
--- 61,65 ----
),
),
!
StringField('title',
accessor='''Title''',
***************
*** 72,76 ****
),
),
!
TextField('question',
widget=TextAreaWidget(description='Enter a value for question.',
--- 72,76 ----
),
),
!
TextField('question',
widget=TextAreaWidget(description='Enter a value for question.',
***************
*** 81,85 ****
),
),
!
TextField('instruction',
widget=TextAreaWidget(description='Enter a value for instruction.',
--- 81,85 ----
),
),
!
TextField('instruction',
widget=TextAreaWidget(description='Enter a value for instruction.',
***************
*** 90,94 ****
),
),
!
IntegerField('maxScore',
widget=IntegerWidget(description='Enter a value for maxScore.',
--- 90,94 ----
),
),
!
IntegerField('maxScore',
widget=IntegerWidget(description='Enter a value for maxScore.',
***************
*** 99,103 ****
),
),
!
BooleanField('strict',
widget=BooleanWidget(description='Enter a value for strict.',
--- 99,103 ----
),
),
!
BooleanField('strict',
widget=BooleanWidget(description='Enter a value for strict.',
***************
*** 108,112 ****
),
),
!
ImageField('picture',
storage=AttributeStorage(),
--- 108,112 ----
),
),
!
ImageField('picture',
storage=AttributeStorage(),
***************
*** 118,122 ****
),
),
!
),
)
--- 118,122 ----
),
),
!
),
)
***************
*** 129,133 ****
register an object
'''
!
pass
--- 129,133 ----
register an object
'''
!
pass
***************
*** 135,141 ****
def registerNotifierAfterProcess(self,object):
'''
!
'''
!
pass
--- 135,141 ----
def registerNotifierAfterProcess(self,object):
'''
!
'''
!
pass
***************
*** 143,149 ****
def notifyOnView(self):
'''
!
'''
!
pass
--- 143,149 ----
def notifyOnView(self):
'''
!
'''
!
pass
***************
*** 151,157 ****
def notifyAfterProcess(self):
'''
!
'''
!
pass
--- 151,157 ----
def notifyAfterProcess(self):
'''
!
'''
!
pass
***************
*** 163,168 ****
object
'''
!
!
pass
--- 163,168 ----
object
'''
!
!
pass
***************
*** 170,176 ****
def getQuestionType(self):
'''
!
'''
!
return self.archetype_name
--- 170,176 ----
def getQuestionType(self):
'''
!
'''
!
return self.archetype_name
***************
*** 187,196 ****
}
!
actions= (
!
)
!
registerType(BaseExamQuestion)
--- 187,196 ----
}
!
actions= (
!
)
!
registerType(BaseExamQuestion)
***************
*** 199,202 ****
##code-section module-footer #fill in your manual code here
##/code-section module-footer
-
-
--- 199,200 ----
-------------------------------------------------------
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/