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

« back to all changes in this revision

Viewing changes to ivle/conf/app/server.py

ivle.webapp.base.views#JSONRESTView: Check that methods are available before
    trying to execute them. Also raise a legal MethodNotAllowed with an
    'allowed' attribute indicating permitted methods
ivle.webapp.errors: Alter constructor to take mandatory 'allowed' argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    "application/pdf",
44
44
    "application/postscript",
45
45
    "application/javascript",
46
 
    "application/x-javascript", # Old versions of Python produce this.
47
46
    "application/json",
48
47
    "application/xhtml+xml",
49
48
    "application/xml",