-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.html
25 lines (21 loc) · 2.18 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<p>Utilities for offline Canvas and Web-CAT grading. All scripts will show usage information when executed with no arguments. Running with the <code>-h</code> flag will show more detailed help information.</p>
<h2 id="generate_form.py"><code>generate_form.py</code></h2>
<p>This script generates a skeleton XML grade submission form from a Canvas .csv grade file.</p>
<p>The generated forms will contain a <code>grade</code> element for each student. The numeric score should be set in the <code>score</code> attribute. Any grading comments should be placed between the open and close <code>grade</code> tags.</p>
<div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml"> <span class="kw"><grade</span><span class="ot"> name=</span><span class="st">"STUDENT NAME"</span><span class="ot"> eid=</span><span class="st">"student_eid"</span><span class="ot"> canvas_id=</span><span class="st">"9999999"</span>
<span class="ot"> score=</span><span class="st">"27"</span><span class="kw">></span>
Any text here will show up as a grading comment in
Canvas. Newlines will be retained, but most other formatting
will be lost :(
Nice work STUDENT NAME!
TOTAL: 27/32
<span class="kw"></grade></span></code></pre></div>
<h2 id="generate_form_webcat.py"><code>generate_form_webcat.py</code></h2>
<p>This script generates an XML grade submission form that pulls data from both a Canvas .csv grade file and a "Fully-detailed Web-CAT CSV".</p>
<p>Example:</p>
<div class="sourceCode"><pre class="sourceCode bash"><code class="sourceCode bash">$ <span class="kw">./generate_form_webcat.py</span> 31_Jan_16_24_Grades-CS159_0005_SP17.csv \
8459169 CS159-PA1C.csv -d <span class="st">'01/27/17 23:00PM'</span> -s 10,1,2 <span class="kw">></span> form.xml</code></pre></div>
<h2 id="submit_form.py"><code>submit_form.py</code></h2>
<p>Script for uploading XML grading forms containing numeric grade information and comments.</p>
<h2 id="canvas_util.py"><code>canvas_util.py</code></h2>
<p>Utility code for posting grade information through the Canvas API. No need to interact with this directly.</p>