aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index 0db31ae5..396e45c2 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -1,6 +1,6 @@
import logging, pprint, cStringIO
from flask import Flask, jsonify, render_template, request, abort, make_response
-import version, rparse, utils
+import version, language, utils
logging.basicConfig(level="DEBUG")
app = Flask(__name__)
@@ -116,14 +116,14 @@ def _preview(is_request):
try:
if is_request:
- r = rparse.parse_request(app.config["pathod"].request_settings, spec)
+ r = language.parse_request(app.config["pathod"].request_settings, spec)
else:
- r = rparse.parse_response(app.config["pathod"].request_settings, spec)
- except rparse.ParseException, v:
+ r = language.parse_response(app.config["pathod"].request_settings, spec)
+ except language.ParseException, v:
args["syntaxerror"] = str(v)
args["marked"] = v.marked()
return render(template, False, **args)
- except rparse.FileAccessDenied:
+ except language.FileAccessDenied:
args["error"] = "File access is disabled."
return render(template, False, **args)