EduploneTest/skins/EduploneTest eduplone_userResults2.pt,NONE,1.1 ep_testingEnvironment.gif,1.3,1.4 questionmark.gif,1.2,1.3

Nils Haagen <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneTest/skins/EduploneTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28526

Added Files:
	eduplone_userResults2.pt ep_testingEnvironment.gif 
	questionmark.gif 
Log Message:
changed icons

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

--- NEW FILE: eduplone_userResults2.pt ---
<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">
        <tal metal:define-macro="main">

        <div class="contentHeader">
            <h1>
            <small i18n:translate="label_results_for_users">Results for user:</small>
            <span tal:content="structure python:here.title_or_id()">
            Title or id</span></h1>
        </div>

        <div id="bodyContent"
                 tal:define="quests python:here.fixedObjectValues();
                 	     questionId python: request.get('qId', None);
			     defcolors python:['red','green'];
			     defimages python:['wrong_answer.gif','right_answer.gif']">

        
<!-- ===== -->
     <tal:rep tal:repeat="quest quests">
    
        <fieldset>
    	    <legend>
	        <img src="questionmark.gif">
		
    	        <span style="text-decoration:underline; font-weight: bold;">
        	    <a tal:content="quest/title"
                       tal:attributes="href python:quest.absolute_url() + '/task_view' " />
		</span>
		
		&nbsp;

            	(<tal tal:content="python: quest.meta_type" />)
			   
		&nbsp;&nbsp;&nbsp;

            	<b tal:content="python: round(here.score_CalculateQuestion(quest.getId(), user.id),2)" />
            	/
            	<b tal:content="python: quest.getScore()" /> 
		<b i18n:translate="label_score">Punkte</b>
		
	    </legend>

            <small style="font-weight:normal;" tal:content="structure quest/question" />
            <br/><br/>
            
	    <tal:typeswitch tal:condition="python: quest.meta_type == 'eduplone FillGap'">
		<b tal:content="structure python: quest.getRenderedText(render_as='tutor_noLinks')" />
		<bR><bR>		
	    </tal:typeswitch>
	    
	    
	    <tal:typeswitch tal:condition="python: quest.meta_type == 'eduplone FreeText'">
		<b tal:content="structure python: here.evalFreeTextAnswer(quest.getId(), here.getSingleAnswer(quest.getId(), quest.getId()))" />		
		<bR><bR>		
		
		<tal tal:define="qId python:quest.getId();
				 uAnswer python:here.getSingleAnswer(qId, qId)">
		    <h2 tal:content="python: str(here.evalFreeTextAnswer(qId, uAnswer, 1))" />
		</tal>
		
	        <table border="1" >
     		<tr>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_answer_alternatives">Answer alternatives</td>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_user_answer">User answer</td>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_correct">correct ?</td>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_user_score">Score</td>
    		</tr>
	        </table>
	    
	    </tal:typeswitch>
	    	    

<!-- == TYPESWITCH == -->
	    <table border="1" tal:condition="python: quest.meta_type != 'eduplone FreeText'">
     		<tr>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_answer_alternatives">Answer alternatives</td>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_user_answer">User answer</td>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_correct">correct ?</td>
     		<td style="font-weight:bold; background-color:lightgrey;" i18n:translate="label_user_score">Score</td>
    		</tr>

		<tr tal:repeat="answer python:here.filteredAnswerValues(quest.getId())">
		<tal:def tal:define="MType python: answer.meta_type">
	    
<!-- == TYPESWITCH == -->
		<tal:typeswitch tal:condition="python: MType == 'eduplone SingleChoiceAnswer'">
		    <td tal:content="python: answer.getAnswer()" />
		    <td>
			<b tal:condition="python: answer.getId()==here.getSingleAnswer(quest.getId(),answer.getId())">X</b>
		    </td>
		    <td>
			<img src="" tal:attributes="src python:defimages[here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))]"/>
		    </td>		
		    <td>
			<tal tal:condition="python: here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))">
			    <b tal:content="python: round(float(quest.getScore())/float(len(quest.filteredAnswerValues(quest.getId()))),2)" /> 
			</tal>
		    </td>
		</tal:typeswitch>
<!-- = -->		
		<tal:typeswitch tal:condition="python: MType in ['eduplone MultiChoiceAnswer', 'eduplone TrueFalseAnswer',]">
		    <td tal:content="python: answer.getAnswer()" />
		    <td tal:content="python: here.getSingleAnswer(quest.getId(),answer.getId())" />
		    <td>
			<img src="" tal:attributes="src python:defimages[here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))]"/>
		    </td>		
		    <td>
			<tal tal:condition="python: here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))">
			    <b tal:content="python: round(float(quest.getScore())/float(len(quest.filteredAnswerValues(quest.getId()))),2)" /> 
			</tal>
		    </td>
		</tal:typeswitch>
<!-- = -->		
		<tal:typeswitch tal:condition="python: MType in ['eduplone FillGapAnswer',]">
		    <td>
			<span tal:repeat="answerLine python: answer.getCorrectAnswer()">
			    <b tal:replace="answerLine" /><br>
			</span>
		    <td tal:content="python: here.getSingleAnswer(quest.getId(),answer.getId())" />
		    <td>
			<img src="" tal:attributes="src python:defimages[here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))]"/>
		    </td>		
		    <td>
			<tal tal:condition="python: here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))">
			    <b tal:content="python: round(float(quest.getScore())/float(len(quest.filteredAnswerValues(quest.getId()))),2)" /> 
			</tal>
		    </td>
		</tal:typeswitch>
<!-- = -->		
		<tal:typeswitch tal:condition="python: MType in ['eduplone MatchingAnswer',]">
		    <td tal:content="python: answer.getCorrectAnswer()" />
		    <td tal:content="python: here.getSingleAnswer(quest.getId(),answer.getId())" />
		    <td>
			<img src="" tal:attributes="src python:defimages[here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))]"/>
		    </td>		
		    <td>
			<tal tal:condition="python: here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))">
			    <b tal:content="python: round(float(quest.getScore())/float(len(quest.filteredAnswerValues(quest.getId()))),2)" /> 
			</tal>
		    </td>
		</tal:typeswitch>
<!-- = -->		
		<tal:typeswitch tal:condition="python: MType in ['eduplone FreeTextAnswer',]">
		    <td tal:content="python: answer.getCorrectAnswer()" />
		    <td tal:content="python: here.getSingleAnswer(quest.getId(),answer.getId())" />
		    <td>
			<img src="" tal:attributes="src python:defimages[here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))]"/>
		    </td>		
		    <td>
			<tal tal:condition="python: here.evalAnswer(quest.getId(), answer.getId(), here.getSingleAnswer(quest.getId(), answer.getId()))">
			    <b tal:content="python: round(float(quest.getScore())/float(len(quest.filteredAnswerValues(quest.getId()))),2)" /> 
			</tal>
		    </td>
		</tal:typeswitch>
		
		
<!-- == //TYPESWITCH == -->

		</tal:def>
		</tr>
	    </table>
	    
	</fieldset>

    </tal:rep>

<!-- ===== -->

        </div>
        </tal>
    </div>
</body>
</html>

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



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.