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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

Remove HTML support from ivle.request.Request.

Drop Request.title and Request.write_html_head_foot, as they are not useful
without HTML support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
from ivle.dispatch import login
46
46
from ivle.webapp.base.plugins import ViewPlugin, PublicViewPlugin
47
47
from ivle.webapp.errors import HTTPError, Unauthorized
48
 
import html
49
48
 
50
49
def generate_route_mapper(view_plugins, attr):
51
50
    """
72
71
    # Make the request object into an IVLE request which can be passed to apps
73
72
    apachereq = req
74
73
    try:
75
 
        req = Request(req, html.write_html_head)
 
74
        req = Request(req)
76
75
    except Exception:
77
76
        # Pass the apachereq to error reporter, since ivle req isn't created
78
77
        # yet.