summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
Diffstat (limited to 'module/web')
-rw-r--r--module/web/api_app.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/web/api_app.py b/module/web/api_app.py
index db735a5b9..1629c1677 100644
--- a/module/web/api_app.py
+++ b/module/web/api_app.py
@@ -7,19 +7,18 @@ from traceback import format_exc, print_exc
from bottle import route, request, response, HTTPError
-from thrift.protocol.TBase import TBase
-
from utils import toDict, set_session
from webinterface import PYLOAD
from module.common.json_layer import json
from module.lib.SafeEval import const_eval as literal_eval
+from module.Api import BaseObject
# json encoder that accepts TBase objects
class TBaseEncoder(json.JSONEncoder):
def default(self, o):
- if isinstance(o, TBase):
+ if isinstance(o, BaseObject):
return toDict(o)
return json.JSONEncoder.default(self, o)