summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-19 22:44:24 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-19 22:44:24 +0100
commit3b9885e40961bde996014c7e82d59daf2bd7ac14 (patch)
tree54f60f42b9b445d8b497d373a9d16eefd262ce87 /module/web
parentcatch real debrid error, when ip is blocked (diff)
downloadpyload-3b9885e40961bde996014c7e82d59daf2bd7ac14.tar.xz
disableble thriftbackend
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)