~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/overlay.html

  • Committer: stevenbird
  • Date: 2008-02-20 11:50:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:523
Adding ReStructured Text preprocessing of exercise descriptions,
so that the markup for exercises is the same as for the tutorials.

www/apps/tutorial/rst.py
* cut down version of NLTK rst.py, which extends docutils
  with colourised python codeblocks
* modified to work with strings rather than files

www/apps/tutorial/__init__.py
* call rst() main function on exercise description once
  it is extracted from the source XML file

www/apps/tutorialservice/test/TestFramework.py
* clean up docstring

www/apps/tutorialservice/test/parse_exercise.py
* remove backwards compatibility for desc attribute
  (now authors must provide both pass and fail strings)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:xi="http://www.w3.org/2001/XInclude"
3
 
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
4
 
      
5
 
  <body py:strip="">
6
 
    <div id="console_body" py:attrs="start_body_attrs">
7
 
      <h1 py:if="not windowpane">Python Console</h1>
8
 
      <div id="console_heading" py:if="windowpane">Python Console
9
 
        <span class="console_button minimize">
10
 
          <a onclick="console_minimize()"
11
 
              title="Minimize the Python console">
12
 
            <img src="${minimize_path}" alt="Minimize" />
13
 
          </a>
14
 
        </span>
15
 
      </div>
16
 
      <div id="console_body2">
17
 
        <pre id="console_output" class='outputMsg'></pre>
18
 
        <div id="console_input">
19
 
          <div id="console_inputArea">
20
 
          </div>
21
 
          <label id="console_prompt">&gt;&gt;&gt; </label>
22
 
          <input id="console_inputText" type="text" size="80" 
23
 
              onkeypress="return catch_input(event.keyCode)" />
24
 
          <input type='button' value='Interrupt' onclick='set_interrupt();'/>
25
 
          <input type='button' value='Clear Output' onclick='return clear_output();'/>
26
 
          <input type='button' value='Reset' onclick='console_reset();'/>
27
 
          <span py:if="windowpane" class="console_button maximize">
28
 
            <a onclick="console_maximize()"
29
 
                title="Open up the Python console">
30
 
              <img src="${maximize_path}" alt="Maximize"/>
31
 
            </a>
32
 
          </span>
33
 
        </div>
34
 
      </div>
35
 
    </div>
36
 
    <div py:if="windowpane" id="console_filler" class="windowpane minimal">
37
 
    <!-- Console filler, provides extra vertical space to stop the console
38
 
                                            covering over the bottom content -->
39
 
    </div>
40
 
  </body>
41
 
</html>