EduploneExam/skins/EduploneExam exam_fillgap.pt,1.1,1.2 exam_fillgap_edit.cpt,1.4,1.5
Nils Haagen <[email protected]> Sat, 02 Apr 2005 15:07:33 +0000
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/skins/EduploneExam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10962/skins/EduploneExam
Modified Files:
exam_fillgap.pt exam_fillgap_edit.cpt
Log Message:
new edit actions
Index: exam_fillgap.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap.pt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** exam_fillgap.pt 2 Apr 2005 14:02:17 -0000 1.1
--- exam_fillgap.pt 2 Apr 2005 15:07:31 -0000 1.2
***************
*** 4,22 ****
<div>
! <div metal:use-macro="here/exam_questionHeader/macros/questionHeader" />
</div>
- <tal:def tal:define="renderedBasetext python: []">
- <tal:repeat repeat="word python: currentQuestion.getBasetextAsList()">
- <tal:condition tal:condition="python: word.startswith('<id=\'') and word.endswith('\'>')">
- <tal python="python: renderedBasetext.append('<input type=\'text\' name=\'%s\' />' % word[5:-2])" />
- <span tal:content="python: str(renderedBasetext)" />
- </tal:condition>
- <tal:condition tal:condition="python: not word.startswith('<id=\'') and not word.endswith('\'>')">
- <tal python="python: renderedBasetext.append(word)" />
- </tal:condition>
- </tal:repeat>
- <span tal:content="python: str(renderedBasetext)" />
- </tal:def>
</div>
--- 4,63 ----
<div>
! <div metal:use-macro="here/exam_questionHeader/macros/questionHeader" />
!
! <tal:define tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
!
! <tal:repeat repeat="word python: currentQuestion.getBasetextAsList()">
! <tal:isGap tal:condition="python: word.startswith('<id=\'') and word.endswith('\'>')"
! tal:define="answerId python:word[5:-2];
! answerObject python:here[answerId];">
!
! <input tal:condition="python: answerObject.portal_type=='BlindGapAnswer'"
! tal:attributes="type string:text;
! name python:'name';
! value python:'value';" />
!
! <select tal:condition="python: answerObject.portal_type=='ChoiceGapAnswer'"
! tal:attributes="name python:'name'">
! <option tal:repeat="answer python: answerObject.getCleanOptions()"
! tal:attributes="value python:'';
! content python:'';
! selected python:'';" />
! </select>
! </tal:isGap>
!
! <tal:isNotGap tal:condition="python: word.startswith('<id=\'')==False and word.endswith('\'>')==False"
! tal:omit-tag
! tal:replace="word" />
!
! </tal:repeat>
!
! </tal:define>
</div>
</div>
+
+
+
+ <div metal:define-macro="eval"
+ tal:omit-tag="">
+
+ <div tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
+
+ <div metal:use-macro="here/exam_questionHeader/macros/evalHeader" />
+
+
+ <dt>user:</dt>
+ <dd tal:content="python: responseObj[currentQuestion.UID()]" />
+
+ <dt>example:</dt>
+ <dd tal:content="python: currentQuestion.getExemplar()" />
+
+ <!--span tal:condition="python:len(currentQuestion.contentValues()) > 0">
+
+ </span-->
+
+ </div>
+
+ </div>
\ No newline at end of file
Index: exam_fillgap_edit.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap_edit.cpt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** exam_fillgap_edit.cpt 2 Apr 2005 11:49:31 -0000 1.4
--- exam_fillgap_edit.cpt 2 Apr 2005 15:07:31 -0000 1.5
***************
*** 1,3 ****
! รครค<tal:block metal:define-macro="master"
define="errors options/state/getErrors | nothing;
Iterator python:modules['Products.Archetypes'].IndexIterator;
--- 1,3 ----
! <tal:block metal:define-macro="master"
define="errors options/state/getErrors | nothing;
Iterator python:modules['Products.Archetypes'].IndexIterator;
-------------------------------------------------------
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