EduploneExam/answers BlindGapAnswer.py,1.23,1.24 BooleanAnswer.py,1.22,1.23 ChoiceGapAnswer.py,1.22,1.23 FreeTextAnswer.py,1.23,1.24 MatchingAnswer.py,1.24,1.25 MathAnswer.py,1.25,1.26 MultipleChoiceAnswer.py,1.21,1.22 SingleChoiceAnswer.py,1.21,1.22 TextLineAnswer.py,1.18,1.19 TextTaskAnswer.py,1.22,1.23 TrueFalseAnswer.py,1.21,1.22
Nils Haagen <[email protected]> Sat, 02 Apr 2005 15:07:30 +0000
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/answers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10962/answers
Modified Files:
BlindGapAnswer.py BooleanAnswer.py ChoiceGapAnswer.py
FreeTextAnswer.py MatchingAnswer.py MathAnswer.py
MultipleChoiceAnswer.py SingleChoiceAnswer.py
TextLineAnswer.py TextTaskAnswer.py TrueFalseAnswer.py
Log Message:
new edit actions
Index: TrueFalseAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/TrueFalseAnswer.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** TrueFalseAnswer.py 25 Feb 2005 13:42:52 -0000 1.21
--- TrueFalseAnswer.py 2 Apr 2005 15:07:27 -0000 1.22
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: TextLineAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/TextLineAnswer.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** TextLineAnswer.py 25 Feb 2005 13:42:52 -0000 1.18
--- TextLineAnswer.py 2 Apr 2005 15:07:27 -0000 1.19
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: MultipleChoiceAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/MultipleChoiceAnswer.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** MultipleChoiceAnswer.py 25 Feb 2005 13:42:52 -0000 1.21
--- MultipleChoiceAnswer.py 2 Apr 2005 15:07:27 -0000 1.22
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: FreeTextAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/FreeTextAnswer.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** FreeTextAnswer.py 25 Feb 2005 13:42:52 -0000 1.23
--- FreeTextAnswer.py 2 Apr 2005 15:07:27 -0000 1.24
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: ChoiceGapAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/ChoiceGapAnswer.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** ChoiceGapAnswer.py 25 Feb 2005 13:42:52 -0000 1.22
--- ChoiceGapAnswer.py 2 Apr 2005 15:07:27 -0000 1.23
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
***************
*** 74,77 ****
--- 74,89 ----
#Methods
+ def getCleanOptions(self):
+ ''' concatenates self.correct and self.options
+ and sorts the list
+ '''
+ cleanOptions=self.getCorrect()
+ for o in self.getOptions():
+ cleanOptions.append(o)
+
+ cleanOptions.sort()
+
+ return cleanOptions
+
#methods from Interface IExamAnswer
***************
*** 99,104 ****
actions= (
!
!
)
--- 111,121 ----
actions= (
!
! {'action': '''string:$object_url/exam_fillgap_edit''',
! 'category': '''object''',
! 'id': 'edit',
! 'name': 'exam_fillgap_edit',
! 'permissions': ('''Edit''',),
! 'condition' : 'python:1'},
)
Index: TextTaskAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/TextTaskAnswer.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** TextTaskAnswer.py 25 Feb 2005 13:42:52 -0000 1.22
--- TextTaskAnswer.py 2 Apr 2005 15:07:27 -0000 1.23
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: MathAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/MathAnswer.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** MathAnswer.py 25 Feb 2005 16:10:51 -0000 1.25
--- MathAnswer.py 2 Apr 2005 15:07:27 -0000 1.26
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: MatchingAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/MatchingAnswer.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** MatchingAnswer.py 25 Feb 2005 13:42:52 -0000 1.24
--- MatchingAnswer.py 2 Apr 2005 15:07:27 -0000 1.25
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: BooleanAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/BooleanAnswer.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** BooleanAnswer.py 25 Feb 2005 13:42:52 -0000 1.22
--- BooleanAnswer.py 2 Apr 2005 15:07:27 -0000 1.23
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: SingleChoiceAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/SingleChoiceAnswer.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** SingleChoiceAnswer.py 25 Feb 2005 13:42:52 -0000 1.21
--- SingleChoiceAnswer.py 2 Apr 2005 15:07:27 -0000 1.22
***************
*** 8,12 ****
# by FH-Aargau, Switzerland
#
! # Generated: Fri Feb 25 13:50:07 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
--- 8,12 ----
# by FH-Aargau, Switzerland
#
! # Generated: Wed Mar 30 22:50:24 2005
# Generator: ArchGenXML Version 1.2 devel 3 http://sf.net/projects/archetypes/
#
Index: BlindGapAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/BlindGapAnswer.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** BlindGapAnswer.py 2 Apr 2005 14:22:14 -0000 1.23
--- BlindGapAnswer.py 2 Apr 2005 15:07:27 -0000 1.24
***************
*** 2,10 ****
"""\
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/
#
--- 2,11 ----
"""\
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.4 devel 1 http://sf.net/projects/archetypes/
#
***************
*** 75,78 ****
--- 76,108 ----
+ schema=BaseSchema + getattr(TextLineAnswer,'schema',Schema(())) + Schema((
+ ),
+ )
+
+ #Methods
+
+
+ # uncomment lines below when you need
+ factory_type_information={
+ 'allowed_content_types':allowed_content_types,
+ 'allow_discussion': 0,
+ #'content_icon':'BlindGapAnswer.gif',
+ 'immediate_view':'base_view',
+ 'global_allow':0,
+ 'filter_content_types':1,
+ }
+
+
+ actions= (
+
+ {'action': '''string:$object_url/exam_fillgap_edit''',
+ 'category': '''object''',
+ 'id': 'edit',
+ 'name': 'exam_fillgap_edit',
+ 'permissions': ('''Edit''',),
+ 'condition' : 'python:1'},
+
+ )
+
#Methods
-------------------------------------------------------
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