EduploneExam/skins/EduploneExam c.py,NONE,1.1 exam_multiplechoice.pt,NONE,1.1 exam_view.cpt,NONE,1.1 exam_view.cpt.metadata,NONE,1.1 right_answer.gif,NONE,1.1 wrong_answer.gif,NONE,1.1
Nils Haagen <[email protected]>
| 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-serv4644/skins/EduploneExam
Added Files:
c.py exam_multiplechoice.pt exam_view.cpt
exam_view.cpt.metadata right_answer.gif wrong_answer.gif
Log Message:
it starts to grow skin.....
--- NEW FILE: right_answer.gif ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: c.py ---
--- NEW FILE: exam_view.cpt ---
<!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:define="portal_type python:here.getPortalTypeName().lower();
view_template python:'%s_view' % portal_type;
view_macros python:path('here/%s/macros|nothing' % view_template);
body_macro view_macros/body|nothing;
">
<div metal:define-macro="main"
tal:omit-tag="">
<div metal:define-macro="page_nav"
tal:define="results python:here.objectValues();
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:1;
b_start python:1;
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" />
<fieldset tal:define="context python:here;
currentQuestion python: batch[0];
pt_question python:currentQuestion.getQuestionType().replace('Question','');
exam_view_macro string: here/exam_${pt_question}/macros/view;" >
<tal metal:use-macro="here/exam_multiplechoice/macros/view" />
</fieldset>
<div metal:use-macro="here/batch_macros/macros/navigation" />
</div>
</div>
</div>
</body>
</html>
--- NEW FILE: wrong_answer.gif ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: exam_view.cpt.metadata ---
Directory 'skins/EduploneExam':
This skin layer has low priority, put unique templates and scripts here.
I.e. if you to want to create own unique views or forms for your product, this
is the right place.
--- NEW FILE: exam_multiplechoice.pt ---
<div metal:define-macro="view"
tal:omit-tag="">
<div>
<h1 tal:content="python: 'context: ' + context.title_or_id()" />
<h5 tal:content="python: 'currentQuestion: ' + currentQuestion.title_or_id()" />
<bR>
<b tal:content="structure python:currentQuestion.getQuestion()" />
<br/>
<span tal:content="python: currentQuestion.getInstruction()" />
<br/><br/>
<form tal:attributes="action string:'answerAndForward';
method string:'post';"
tal:define= "answers python:currentQuestion.contentValues();
">
<input tal:attributes="type python:'hidden';
name python:'qId';
value python:currentQuestion.getId()"/>
<table border="0">
<tr tal:repeat="answer answers">
<tal:define define="tId python:answer.getId();
tAnswer python:answer.getChallange();
uAnswer python:'here.users.getSingleUserAnswer(cUser, here.id, tId)'">
<td>
<input tal:attributes="name tId;
type python:'checkbox' ;
checked python:test(str(uAnswer)=='on',
'checked', None)"/>
</td><td>
<span tal:content="structure tAnswer" />
</td>
</tal:define>
</tr>
</table>
<br/>
<input type="submit" value="Save" i18n:attributes="value" />
</form>
</div>
</div>
-------------------------------------------------------
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://productguide.itmanagersjournal.com/