Source code for uw.local.teaching.bin.main_web

"""Web user interface for Instructional Support.

This is the FastCGI main program for the Web user interface to Instructional
Support.  It also supports use of a localhost port for development purposes.
"""

from ll.xist.ns import html

from uw.local.webtools import web_main, wsgi_application

from uw.web.html import sorttable

from ..db.cursor import Cursor
from ..webui.wsgifunc import wsgifunc

header_insert = [
    html.link (href="//odyssey.uwaterloo.ca/static/teaching/css/teaching.css", rel="stylesheet", type="text/css"),
    html.script (src="//odyssey.uwaterloo.ca/static/teaching/js/teaching.js", type="text/javascript"),
    html.script (src="//odyssey.uwaterloo.ca/static/ckeditor/ckeditor.js", type="text/javascript"),
]
header_insert.extend (sorttable.header_insert)

[docs]def main (): web_main (Cursor, wsgifunc, header_insert=header_insert)
[docs]def wsgi (demo_mode): return wsgi_application (Cursor, wsgifunc, demo_mode=demo_mode, header_insert=header_insert)