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

« back to all changes in this revision

Viewing changes to bin/trampoline/norm.dot

  • 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
 
digraph norm {
2
 
    rankdir=LR;
3
 
    node [shape = doublecircle]; L0 L1 L4;
4
 
    node [shape = circle];
5
 
    L0 -> L1 [ label = "/ cpy" ];
6
 
 
7
 
    L1 -> L1 [ label = "/ skp" ];
8
 
    L1 -> L2 [ label = ". mrk cpy" ];
9
 
    L1 -> L4 [ label = "* mrk cpy" ];
10
 
 
11
 
    L2 -> L1 [ label = "/ bkp" ];
12
 
    L2 -> L3 [ label = ". cpy" ];
13
 
    L2 -> L4 [ label = "* cpy" ];
14
 
 
15
 
    L3 -> L1 [ label = "/ bkp2" ];
16
 
    L3 -> L4 [ label = ". cpy" ];
17
 
    L3 -> L4 [ label = "* cpy" ];
18
 
 
19
 
    L4 -> L1 [ label = "/ cpy" ];
20
 
    L4 -> L4 [ label = ". cpy" ];
21
 
    L4 -> L4 [ label = "* cpy" ];
22
 
}