152
152
except ValueError:
155
def get_terms_of_service():
157
Sends the Terms of Service document to the req object.
158
This consults conf to find out where the TOS is located on disk, and sends
159
that. If it isn't found, it sends a generic message explaining to admins
160
how to create a real one.
163
return open(ivle.conf.tos_path).read()
166
<p><b>*** SAMPLE ONLY ***</b></p>
167
<p>This is the text of the IVLE Terms of Service.</p>
168
<p>The administrator should create a license file with an appropriate
169
"Terms of Service" license for your organisation.</p>
170
<h2>Instructions for Administrators</h2>
171
<p>You are seeing this message because you have not configured a Terms of
172
Service document.</p>
173
<p>When you configured IVLE, you specified a path to the Terms of Service
174
document (this is found in <b><tt>ivle/conf/conf.py</tt></b> under
175
"<tt>tos_path</tt>").</p>
176
<p>Create a file at this location; an HTML file with the appropriately-worded
178
<p>This should be a normal XHTML file, except it should not contain
179
<tt>html</tt>, <tt>head</tt> or <tt>body</tt> elements - it should
180
just be the contents of a body element (IVLE will wrap it accordingly).</p>
181
<p>This will automatically be used as the license text instead of this
182
placeholder text.</p>
185
155
def incomplete_utf8_sequence(byteseq):