EduploneExam_QOrder/skins/EduploneExam_QOrder OrderQuestion.png,NONE,1.1 exam_order.pt,1.6,1.7

"Fabian K." <[email protected]> Sat, 04 Mar 2006 17:43:17 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneExam_QOrder/skins/EduploneExam_QOrder
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27019

Modified Files:
	exam_order.pt 
Added Files:
	OrderQuestion.png 
Log Message:
Adapted QOrder to new exam_folder_contents

--- NEW FILE: OrderQuestion.png ---
(This appears to be a binary file; contents omitted.)

Index: exam_order.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam_QOrder/skins/EduploneExam_QOrder/exam_order.pt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** exam_order.pt	8 Jan 2006 00:10:59 -0000	1.6
--- exam_order.pt	4 Mar 2006 17:43:15 -0000	1.7
***************
*** 3,7 ****
         tal:omit-tag="">
  
!     
  
      <script language="javascript">
--- 3,7 ----
         tal:omit-tag="">
  
! 
  
      <script language="javascript">
***************
*** 29,38 ****
                      }
                  }
!                 smaller.push(new aEntry(eId, e_tmp.offsetTop, e_tmp.offsetHeight));   
                  eList=smaller.concat(bigger)
              }
              return eList
          }
!         
          function realMove(id, newTop){
              e=document.getElementById(id)
--- 29,38 ----
                      }
                  }
!                 smaller.push(new aEntry(eId, e_tmp.offsetTop, e_tmp.offsetHeight));
                  eList=smaller.concat(bigger)
              }
              return eList
          }
! 
          function realMove(id, newTop){
              e=document.getElementById(id)
***************
*** 51,55 ****
          }
  
!         
          function swapPositions(Pos1, Pos2, eList){
              realMove(eList[Pos1].id, eList[Pos2].top)
--- 51,55 ----
          }
  
! 
          function swapPositions(Pos1, Pos2, eList){
              realMove(eList[Pos1].id, eList[Pos2].top)
***************
*** 86,90 ****
  
      <div>
!                     
          <div metal:use-macro="here/exam_questionHeader/macros/questionHeader" />
  
--- 86,90 ----
  
      <div>
! 
          <div metal:use-macro="here/exam_questionHeader/macros/questionHeader" />
  
***************
*** 92,131 ****
  
          <div tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
!         
!             <input type="hidden" 
                     tal:attributes="name  python:'answers_%s' % currentQuestion.UID();
                                     value python:'##'.join(currentQuestion.objectUIDs())" />
  
              <tal:repeat repeat="answer python:currentQuestion.contentValues()">
!     
                  <div tal:attributes="id python:'%s##%s' % (currentQuestion.UID(), answer.UID())" style="position:relative; display:block;">
                    <table border=0>
                      <tr>
                          <td>
!                             <div tal:condition="python:answer.getField('picture').get_size(answer) > 0" 
                                   tal:content="structure python: answer.getPicture()"/>
!     
                              <br />
!     
                              <span tal:content="python: answer.getChallenge()" />
!     
                              <br />
                          </td>
!     
                          <td width="10"></td>
                          <td>
!                           
                              <input type="hidden" tal:attributes="name  python:'##'.join([currentQuestion.UID(), answer.UID()]);
                                                                 value python:responseObj[answer.UID()]" />
!         
                              <br />
!                             <a tal:attributes="href python:'javascript:moveAnswer(\'%s\',\'%s\', 1)'% (currentQuestion.UID(), answer.UID())">up</a> | 
                              <a tal:attributes="href python:'javascript:moveAnswer(\'%s\',\'%s\',-1)'% (currentQuestion.UID(), answer.UID())">down</a>
!                             
                          </td>
!                     </tr>   
                    </table>
                  </div>
!     
              </tal:repeat>
          </div>
--- 92,131 ----
  
          <div tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False)">
! 
!             <input type="hidden"
                     tal:attributes="name  python:'answers_%s' % currentQuestion.UID();
                                     value python:'##'.join(currentQuestion.objectUIDs())" />
  
              <tal:repeat repeat="answer python:currentQuestion.contentValues()">
! 
                  <div tal:attributes="id python:'%s##%s' % (currentQuestion.UID(), answer.UID())" style="position:relative; display:block;">
                    <table border=0>
                      <tr>
                          <td>
!                             <div tal:condition="python:answer.getField('picture').get_size(answer) > 0"
                                   tal:content="structure python: answer.getPicture()"/>
! 
                              <br />
! 
                              <span tal:content="python: answer.getChallenge()" />
! 
                              <br />
                          </td>
! 
                          <td width="10"></td>
                          <td>
! 
                              <input type="hidden" tal:attributes="name  python:'##'.join([currentQuestion.UID(), answer.UID()]);
                                                                 value python:responseObj[answer.UID()]" />
! 
                              <br />
!                             <a tal:attributes="href python:'javascript:moveAnswer(\'%s\',\'%s\', 1)'% (currentQuestion.UID(), answer.UID())">up</a> |
                              <a tal:attributes="href python:'javascript:moveAnswer(\'%s\',\'%s\',-1)'% (currentQuestion.UID(), answer.UID())">down</a>
! 
                          </td>
!                     </tr>
                    </table>
                  </div>
! 
              </tal:repeat>
          </div>
***************
*** 143,147 ****
  
       <div tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False, forUser=forUser)">
!                     
          <div metal:use-macro="here/exam_questionHeader/macros/evalHeader" />
  
--- 143,147 ----
  
       <div tal:define="responseObj python: context.deliverResponse(currentQuestion, create=False, forUser=forUser)">
! 
          <div metal:use-macro="here/exam_questionHeader/macros/evalHeader" />
  
***************
*** 164,169 ****
              <tal:condition tal:condition="answer/challenge">
                  <td>
!                     
!                     <div tal:condition="python:answer.getField('picture').get_size(answer) > 0" 
                           tal:content="structure python: answer.getPicture()"/>
                      <bR />
--- 164,169 ----
              <tal:condition tal:condition="answer/challenge">
                  <td>
! 
!                     <div tal:condition="python:answer.getField('picture').get_size(answer) > 0"
                           tal:content="structure python: answer.getPicture()"/>
                      <bR />
***************
*** 178,187 ****
                  <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
  
!             </tal:condition>    
!             
            </tr>
!         </table>        
  
      </div>
  
! </div>
\ No newline at end of file
--- 178,203 ----
                  <td tal:content="structure python: test(answer.processValue(responseObj[answer.UID()]), '<img src=right_answer.gif>', '<img src=wrong_answer.gif>')" />
  
!             </tal:condition>
! 
            </tr>
!         </table>
  
      </div>
  
! </div>
! 
! <div metal:define-macro="folder_contents"
!        tal:omit-tag=" "
!        i18n:domain="EduploneExam">
!     <span tal:content="item_object/getChallenge"
!           tal:omit-tag=" " />
! </div>
! 
! <div metal:define-macro="folder_contents_special_title"
!        tal:omit-tag=" "
!        i18n:domain="EduploneExam">
!     Position
! </div>
! 
! <td align="center" metal:define-macro="folder_contents_special"
!                      tal:content="item_object/getCorrect" />



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642