EduploneExamPersistence/skins/EduploneExamPersistence exam_results.pt,1.1,1.2

Nils Haagen <[email protected]> Sun, 15 May 2005 12:43:50 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneExamPersistence/skins/EduploneExamPersistence
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7993/skins/EduploneExamPersistence

Modified Files:
	exam_results.pt 
Log Message:
stores PersistentResponse as content-object in the Memberfolder. this is just temporarily - and should move to memberobject...

Index: exam_results.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExamPersistence/skins/EduploneExamPersistence/exam_results.pt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** exam_results.pt	1 Mar 2005 19:42:31 -0000	1.1
--- exam_results.pt	15 May 2005 12:43:48 -0000	1.2
***************
*** 1,122 ****
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
        lang="en-US"
        metal:use-macro="here/main_template/macros/master"
!       i18n:domain="eduplone">
! 
!     <body>
!         <div metal:fill-slot="main">
!             <tal tal:define="env python:here">
!             <tal metal:define-macro="main">
! 
!                 <div class="contentHeader">
!                     <h1 tal:content="structure python:here.aq_parent.title_or_id()">Title or id</h1>
!                 </div>
!                 <div id="bodyContent"
!                      tal:define="questionObjs python:here.contentValues();
!                                  allUsers python:here.getExamUsers();
!                                  responses python:here.getAllUserResponses()"> 
!                                          
!                     <table border="1"
!                            id="sortable"
!                            class="listing"
!                            summary="UserResults">
! 
!                         <thead>
!                               <metal:block tal:condition="batch|not:standalone|nothing">
!                                     <tr>
!                                         <th i18n:translate="label_users"><b>User</b></th>
!                                         <th i18n:translate="label_max_score"><b>Total score</b></th>
!                                         <th tal:repeat="qObj questionObjs"
!                                             tal:content="qObj/title" />
!                                     </tr>
!                               </metal:block>
!                         </thead>
! 
!                         <tr tal:repeat="user allUsers">
! 
!                             <td><b tal:content="user" /></td>
! 
!                             <td></td>
!                             <td tal:repeat="qObjs questionObjs">
!                                 <tal tal:content="python: responses[user][qObjs.UID()].getScore()" /> <!--getScore doesn't work...-->
!                                 /<i tal:replace="qObjs/maxScore" /></td>
! 
! 
!                         </tr>
!                    
! 
!                 </div>
! 
!             </tal>
!             </tal>
!         </div>
!     </body>
! </html>
!         
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! 
! <!--<h2><b tal:content="currentQuestion/title" />
! 
  
!     </body>
  
-         <h2><b tal:content="currentQuestion/title" />
-             <tal:block tal:omit-tag=""
-                        tal:condition="python: here.getParam_ShowScore()">
-                 (<span tal:omit-tag=""
-                        tal:content="currentQuestion/maxScore" /> Punkte)
-             </tal:block>
-         </h2>
-         
-         <bR />
-         <b tal:content="structure python:currentQuestion.getQuestion()" />
-         <div tal:condition="python:currentQuestion.getPicture()"
-              tal:content="structure python:currentQuestion.getPicture()" />
  
!         <br/>
!         <span tal:content="python: currentQuestion.getInstruction()" />
!         
!         <br/><br/>
  </div>
  
! 
! 
! 
! <div metal:define-macro="evalHeader"
!        tal:omit-tag="">
! 
!         <h2><span tal:omit-tag=""
!                   tal:content="currentQuestion/title" /> 
! 
!             <tal:block tal:omit-tag=""
!                        tal:condition="python: here.getParam_ShowScore()">
!             (<b tal:content="python:responseObj.getScore()" /> 
!             /<span tal:omit-tag=""
!                    tal:content="currentQuestion/maxScore" />)
!             </tal:block>
! 
!         </h2>
! 
!         <span tal:content="structure python:currentQuestion.getQuestion()" />
!         <div tal:condition="python:currentQuestion.getPicture()"
!              tal:content="structure python:currentQuestion.getPicture()" />
! 
!         <br/>
! </div>-->
\ No newline at end of file
--- 1,14 ----
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
        lang="en-US"
        metal:use-macro="here/main_template/macros/master"
!       i18n:domain="plone">
  
! <body>
  
  
! <div metal:fill-slot="main">
!     <p tal:content="python:here.getUserResponses()" />
  </div>
  
! </body>
! </html>



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click