EduploneExam/skins/EduploneExam exam_finished.pt,1.2,1.3 exam_formprocess.cpy,1.7,1.8 exam_view.cpt,1.9,1.10
Nils Haagen <[email protected]> Mon, 26 Sep 2005 07:04:26 +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-serv32493/skins/EduploneExam
Modified Files:
exam_finished.pt exam_formprocess.cpy exam_view.cpt
Log Message:
few changes for compatibility with OrderQuestion
Index: exam_finished.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_finished.pt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** exam_finished.pt 9 Jun 2005 09:21:52 -0000 1.2
--- exam_finished.pt 26 Sep 2005 07:04:23 -0000 1.3
***************
*** 25,29 ****
<div metal:define-macro="page_nav"
! tal:define="results python:here.objectValues();
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:len(results);
--- 25,29 ----
<div metal:define-macro="page_nav"
! tal:define="results python:here.objectValues(here.getRegisteredQuestionTypes().keys());
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:len(results);
Index: exam_view.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_view.cpt,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** exam_view.cpt 20 Sep 2005 09:08:51 -0000 1.9
--- exam_view.cpt 26 Sep 2005 07:04:24 -0000 1.10
***************
*** 26,30 ****
<div metal:define-macro="page_nav"
! tal:define="results python:here.objectValues([here.getRegisteredQuestionTypes().keys()]);
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:1;
--- 26,30 ----
<div metal:define-macro="page_nav"
! tal:define="results python:here.objectValues(here.getRegisteredQuestionTypes().keys());
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:1;
***************
*** 33,37 ****
b_start request/b_start | b_start;
batch python:Batch(results, b_size, int(b_start), orphan=0, pagerange=2);">
!
<div metal:use-macro="here/batch_macros/macros/navigation" />
--- 33,38 ----
b_start request/b_start | b_start;
batch python:Batch(results, b_size, int(b_start), orphan=0, pagerange=2);">
!
!
<div metal:use-macro="here/batch_macros/macros/navigation" />
***************
*** 49,53 ****
<tal:repeat tal:repeat="currentQuestion batch">
!
<fieldset tal:define="context python:here;
pt_question python:currentQuestion.getQuestionType().lower().replace('question','');
--- 50,54 ----
<tal:repeat tal:repeat="currentQuestion batch">
!
<fieldset tal:define="context python:here;
pt_question python:currentQuestion.getQuestionType().lower().replace('question','');
Index: exam_formprocess.cpy
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_formprocess.cpy,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** exam_formprocess.cpy 25 Feb 2005 13:42:55 -0000 1.7
--- exam_formprocess.cpy 26 Sep 2005 07:04:24 -0000 1.8
***************
*** 9,13 ****
from Products.CMFPlone import Batch
request = context.REQUEST
! results = context.contentValues()
b_start = request.get('b_start', 1)
b_size = request.get('b_size', 1)
--- 9,13 ----
from Products.CMFPlone import Batch
request = context.REQUEST
! results = context.contentValues(context.getRegisteredQuestionTypes().keys())
b_start = request.get('b_start', 1)
b_size = request.get('b_size', 1)
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php